Class: Bskyrb::ComAtprotoAdminTakemoderationaction::TakeModerationAction::Input
- Inherits:
-
Object
- Object
- Bskyrb::ComAtprotoAdminTakemoderationaction::TakeModerationAction::Input
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#createdBy ⇒ Object
Returns the value of attribute createdBy.
-
#createLabelVals ⇒ Object
Returns the value of attribute createLabelVals.
-
#negateLabelVals ⇒ Object
Returns the value of attribute negateLabelVals.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#subject ⇒ Object
Returns the value of attribute subject.
-
#subjectBlobCids ⇒ Object
Returns the value of attribute subjectBlobCids.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
4145 4146 4147 |
# File 'lib/bskyrb/generated_classes.rb', line 4145 def action @action end |
#createdBy ⇒ Object
Returns the value of attribute createdBy.
4157 4158 4159 |
# File 'lib/bskyrb/generated_classes.rb', line 4157 def createdBy @createdBy end |
#createLabelVals ⇒ Object
Returns the value of attribute createLabelVals.
4151 4152 4153 |
# File 'lib/bskyrb/generated_classes.rb', line 4151 def createLabelVals @createLabelVals end |
#negateLabelVals ⇒ Object
Returns the value of attribute negateLabelVals.
4153 4154 4155 |
# File 'lib/bskyrb/generated_classes.rb', line 4153 def negateLabelVals @negateLabelVals end |
#reason ⇒ Object
Returns the value of attribute reason.
4155 4156 4157 |
# File 'lib/bskyrb/generated_classes.rb', line 4155 def reason @reason end |
#subject ⇒ Object
Returns the value of attribute subject.
4147 4148 4149 |
# File 'lib/bskyrb/generated_classes.rb', line 4147 def subject @subject end |
#subjectBlobCids ⇒ Object
Returns the value of attribute subjectBlobCids.
4149 4150 4151 |
# File 'lib/bskyrb/generated_classes.rb', line 4149 def subjectBlobCids @subjectBlobCids end |
Class Method Details
.from_hash(hash) ⇒ Object
4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 |
# File 'lib/bskyrb/generated_classes.rb', line 4159 def self.from_hash(hash) # httparty-returned string-keyed hash instance = new instance.send(:action=, hash["action"]) instance.send(:subject=, hash["subject"]) instance.send(:subjectBlobCids=, hash["subjectBlobCids"]) instance.send(:createLabelVals=, hash["createLabelVals"]) instance.send(:negateLabelVals=, hash["negateLabelVals"]) instance.send(:reason=, hash["reason"]) instance.send(:createdBy=, hash["createdBy"]) instance end |
Instance Method Details
#to_h ⇒ Object
4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 |
# File 'lib/bskyrb/generated_classes.rb', line 4180 def to_h { "action" => action, "subject" => subject, "subjectBlobCids" => subjectBlobCids, "createLabelVals" => createLabelVals, "negateLabelVals" => negateLabelVals, "reason" => reason, "createdBy" => createdBy } end |