Class: Bskyrb::ComAtprotoAdminDefs::ReportView
- Inherits:
-
Object
- Object
- Bskyrb::ComAtprotoAdminDefs::ReportView
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#createdAt ⇒ Object
Returns the value of attribute createdAt.
-
#id ⇒ Object
Returns the value of attribute id.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#reasonType ⇒ Object
Returns the value of attribute reasonType.
-
#reportedBy ⇒ Object
Returns the value of attribute reportedBy.
-
#resolvedByActionIds ⇒ Object
Returns the value of attribute resolvedByActionIds.
-
#subject ⇒ Object
Returns the value of attribute subject.
Class Method Summary collapse
Instance Attribute Details
#createdAt ⇒ Object
Returns the value of attribute createdAt.
1164 1165 1166 |
# File 'lib/bskyrb/generated_classes.rb', line 1164 def createdAt @createdAt end |
#id ⇒ Object
Returns the value of attribute id.
1154 1155 1156 |
# File 'lib/bskyrb/generated_classes.rb', line 1154 def id @id end |
#reason ⇒ Object
Returns the value of attribute reason.
1158 1159 1160 |
# File 'lib/bskyrb/generated_classes.rb', line 1158 def reason @reason end |
#reasonType ⇒ Object
Returns the value of attribute reasonType.
1156 1157 1158 |
# File 'lib/bskyrb/generated_classes.rb', line 1156 def reasonType @reasonType end |
#reportedBy ⇒ Object
Returns the value of attribute reportedBy.
1162 1163 1164 |
# File 'lib/bskyrb/generated_classes.rb', line 1162 def reportedBy @reportedBy end |
#resolvedByActionIds ⇒ Object
Returns the value of attribute resolvedByActionIds.
1166 1167 1168 |
# File 'lib/bskyrb/generated_classes.rb', line 1166 def resolvedByActionIds @resolvedByActionIds end |
#subject ⇒ Object
Returns the value of attribute subject.
1160 1161 1162 |
# File 'lib/bskyrb/generated_classes.rb', line 1160 def subject @subject end |
Class Method Details
.from_hash(hash) ⇒ Object
1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 |
# File 'lib/bskyrb/generated_classes.rb', line 1168 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(:resolvedByActionIds=, hash["resolvedByActionIds"]) instance end |