Class: Bskyrb::ComAtprotoModerationCreatereport::CreateReport::Input
- Inherits:
-
Object
- Object
- Bskyrb::ComAtprotoModerationCreatereport::CreateReport::Input
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#reasonType ⇒ Object
Returns the value of attribute reasonType.
-
#subject ⇒ Object
Returns the value of attribute subject.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#reason ⇒ Object
Returns the value of attribute reason.
4422 4423 4424 |
# File 'lib/bskyrb/generated_classes.rb', line 4422 def reason @reason end |
#reasonType ⇒ Object
Returns the value of attribute reasonType.
4420 4421 4422 |
# File 'lib/bskyrb/generated_classes.rb', line 4420 def reasonType @reasonType end |
#subject ⇒ Object
Returns the value of attribute subject.
4424 4425 4426 |
# File 'lib/bskyrb/generated_classes.rb', line 4424 def subject @subject end |
Class Method Details
.from_hash(hash) ⇒ Object
4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 |
# File 'lib/bskyrb/generated_classes.rb', line 4426 def self.from_hash(hash) # httparty-returned string-keyed hash instance = new instance.send(:reasonType=, hash["reasonType"]) instance.send(:reason=, hash["reason"]) instance.send(:subject=, hash["subject"]) instance end |
Instance Method Details
#to_h ⇒ Object
4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 |
# File 'lib/bskyrb/generated_classes.rb', line 4439 def to_h { "reasonType" => reasonType, "reason" => reason, "subject" => subject } end |