Class: Bskyrb::ComAtprotoAdminDefs::ReportViewDetail

Inherits:
Object
  • Object
show all
Defined in:
lib/bskyrb/generated_classes.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#createdAtObject

Returns the value of attribute createdAt.



1203
1204
1205
# File 'lib/bskyrb/generated_classes.rb', line 1203

def createdAt
  @createdAt
end

#idObject

Returns the value of attribute id.



1193
1194
1195
# File 'lib/bskyrb/generated_classes.rb', line 1193

def id
  @id
end

#reasonObject

Returns the value of attribute reason.



1197
1198
1199
# File 'lib/bskyrb/generated_classes.rb', line 1197

def reason
  @reason
end

#reasonTypeObject

Returns the value of attribute reasonType.



1195
1196
1197
# File 'lib/bskyrb/generated_classes.rb', line 1195

def reasonType
  @reasonType
end

#reportedByObject

Returns the value of attribute reportedBy.



1201
1202
1203
# File 'lib/bskyrb/generated_classes.rb', line 1201

def reportedBy
  @reportedBy
end

#resolvedByActionsObject

Returns the value of attribute resolvedByActions.



1205
1206
1207
# File 'lib/bskyrb/generated_classes.rb', line 1205

def resolvedByActions
  @resolvedByActions
end

#subjectObject

Returns the value of attribute subject.



1199
1200
1201
# File 'lib/bskyrb/generated_classes.rb', line 1199

def subject
  @subject
end

Class Method Details

.from_hash(hash) ⇒ Object



1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
# File 'lib/bskyrb/generated_classes.rb', line 1207

def self.from_hash(hash)
  # httparty-returned string-keyed hash
  instance = new

  instance.send(:id=, hash["id"])

  instance.send(:reasonType=, hash["reasonType"])

  instance.send(:reason=, hash["reason"])

  instance.send(:subject=, hash["subject"])

  instance.send(:reportedBy=, hash["reportedBy"])

  instance.send(:createdAt=, hash["createdAt"])

  instance.send(:resolvedByActions=, hash["resolvedByActions"])

  instance
end