Class: Bskyrb::ComAtprotoAdminGetmoderationaction::GetModerationAction::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

#idObject

Returns the value of attribute id.



3689
3690
3691
# File 'lib/bskyrb/generated_classes.rb', line 3689

def id
  @id
end

Class Method Details

.from_hash(hash) ⇒ Object



3691
3692
3693
3694
3695
3696
3697
3698
# File 'lib/bskyrb/generated_classes.rb', line 3691

def self.from_hash(hash)
  # httparty-returned string-keyed hash
  instance = new

  instance.send(:id=, hash["id"])

  instance
end

Instance Method Details

#to_hObject



3700
3701
3702
3703
3704
3705
3706
# File 'lib/bskyrb/generated_classes.rb', line 3700

def to_h
  {

    "id" => id

  }
end