Class: Bskyrb::ComAtprotoSyncGetblocks::GetBlocks::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

#cidsObject

Returns the value of attribute cids.



5731
5732
5733
# File 'lib/bskyrb/generated_classes.rb', line 5731

def cids
  @cids
end

#didObject

Returns the value of attribute did.



5729
5730
5731
# File 'lib/bskyrb/generated_classes.rb', line 5729

def did
  @did
end

Class Method Details

.from_hash(hash) ⇒ Object



5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
# File 'lib/bskyrb/generated_classes.rb', line 5733

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

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

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

  instance
end

Instance Method Details

#to_hObject



5744
5745
5746
5747
5748
5749
5750
5751
5752
# File 'lib/bskyrb/generated_classes.rb', line 5744

def to_h
  {

    "did" => did,

    "cids" => cids

  }
end