Class: Bskyrb::ComAtprotoAdminTakemoderationaction::TakeModerationAction::Input

Inherits:
Object
  • Object
show all
Defined in:
lib/bskyrb/generated_classes.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actionObject

Returns the value of attribute action.



4145
4146
4147
# File 'lib/bskyrb/generated_classes.rb', line 4145

def action
  @action
end

#createdByObject

Returns the value of attribute createdBy.



4157
4158
4159
# File 'lib/bskyrb/generated_classes.rb', line 4157

def createdBy
  @createdBy
end

#createLabelValsObject

Returns the value of attribute createLabelVals.



4151
4152
4153
# File 'lib/bskyrb/generated_classes.rb', line 4151

def createLabelVals
  @createLabelVals
end

#negateLabelValsObject

Returns the value of attribute negateLabelVals.



4153
4154
4155
# File 'lib/bskyrb/generated_classes.rb', line 4153

def negateLabelVals
  @negateLabelVals
end

#reasonObject

Returns the value of attribute reason.



4155
4156
4157
# File 'lib/bskyrb/generated_classes.rb', line 4155

def reason
  @reason
end

#subjectObject

Returns the value of attribute subject.



4147
4148
4149
# File 'lib/bskyrb/generated_classes.rb', line 4147

def subject
  @subject
end

#subjectBlobCidsObject

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_hObject



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