Class: Bskyrb::ComAtprotoAdminReversemoderationaction::ReverseModerationAction::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

#createdByObject

Returns the value of attribute createdBy.



4031
4032
4033
# File 'lib/bskyrb/generated_classes.rb', line 4031

def createdBy
  @createdBy
end

#idObject

Returns the value of attribute id.



4027
4028
4029
# File 'lib/bskyrb/generated_classes.rb', line 4027

def id
  @id
end

#reasonObject

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_hObject



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