Class: Bskyrb::ComAtprotoModerationCreatereport::CreateReport::Output
- Inherits:
-
Object
- Object
- Bskyrb::ComAtprotoModerationCreatereport::CreateReport::Output
- 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.
-
#subject ⇒ Object
Returns the value of attribute subject.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#createdAt ⇒ Object
Returns the value of attribute createdAt.
4463 4464 4465 |
# File 'lib/bskyrb/generated_classes.rb', line 4463 def createdAt @createdAt end |
#id ⇒ Object
Returns the value of attribute id.
4453 4454 4455 |
# File 'lib/bskyrb/generated_classes.rb', line 4453 def id @id end |
#reason ⇒ Object
Returns the value of attribute reason.
4457 4458 4459 |
# File 'lib/bskyrb/generated_classes.rb', line 4457 def reason @reason end |
#reasonType ⇒ Object
Returns the value of attribute reasonType.
4455 4456 4457 |
# File 'lib/bskyrb/generated_classes.rb', line 4455 def reasonType @reasonType end |
#reportedBy ⇒ Object
Returns the value of attribute reportedBy.
4461 4462 4463 |
# File 'lib/bskyrb/generated_classes.rb', line 4461 def reportedBy @reportedBy end |
#subject ⇒ Object
Returns the value of attribute subject.
4459 4460 4461 |
# File 'lib/bskyrb/generated_classes.rb', line 4459 def subject @subject end |
Class Method Details
.from_hash(hash) ⇒ Object
4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 |
# File 'lib/bskyrb/generated_classes.rb', line 4465 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 end |
Instance Method Details
#to_h ⇒ Object
4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 |
# File 'lib/bskyrb/generated_classes.rb', line 4484 def to_h { "id" => id, "reasonType" => reasonType, "reason" => reason, "subject" => subject, "reportedBy" => reportedBy, "createdAt" => createdAt } end |