Class: Bskyrb::ComAtprotoAdminReversemoderationaction::ReverseModerationAction::Input
- Inherits:
-
Object
- Object
- Bskyrb::ComAtprotoAdminReversemoderationaction::ReverseModerationAction::Input
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#createdBy ⇒ Object
Returns the value of attribute createdBy.
-
#id ⇒ Object
Returns the value of attribute id.
-
#reason ⇒ Object
Returns the value of attribute reason.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#createdBy ⇒ Object
Returns the value of attribute createdBy.
4031 4032 4033 |
# File 'lib/bskyrb/generated_classes.rb', line 4031 def createdBy @createdBy end |
#id ⇒ Object
Returns the value of attribute id.
4027 4028 4029 |
# File 'lib/bskyrb/generated_classes.rb', line 4027 def id @id end |
#reason ⇒ Object
Returns the value of attribute reason.
4029 4030 4031 |
# File 'lib/bskyrb/generated_classes.rb', line 4029 def reason @reason end |
Class Method Details
.from_hash(hash) ⇒ Object
4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 |
# File 'lib/bskyrb/generated_classes.rb', line 4033 def self.from_hash(hash) # httparty-returned string-keyed hash instance = new instance.send(:id=, hash["id"]) instance.send(:reason=, hash["reason"]) instance.send(:createdBy=, hash["createdBy"]) instance end |
Instance Method Details
#to_h ⇒ Object
4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 |
# File 'lib/bskyrb/generated_classes.rb', line 4046 def to_h { "id" => id, "reason" => reason, "createdBy" => createdBy } end |