Class: Bskyrb::ComAtprotoModerationCreatereport::CreateReport::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

#reasonObject

Returns the value of attribute reason.



4422
4423
4424
# File 'lib/bskyrb/generated_classes.rb', line 4422

def reason
  @reason
end

#reasonTypeObject

Returns the value of attribute reasonType.



4420
4421
4422
# File 'lib/bskyrb/generated_classes.rb', line 4420

def reasonType
  @reasonType
end

#subjectObject

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_hObject



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