Class: Bskyrb::ComAtprotoSyncGetrecord::GetRecord::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

#collectionObject

Returns the value of attribute collection.



5897
5898
5899
# File 'lib/bskyrb/generated_classes.rb', line 5897

def collection
  @collection
end

#commitObject

Returns the value of attribute commit.



5901
5902
5903
# File 'lib/bskyrb/generated_classes.rb', line 5901

def commit
  @commit
end

#didObject

Returns the value of attribute did.



5895
5896
5897
# File 'lib/bskyrb/generated_classes.rb', line 5895

def did
  @did
end

#rkeyObject

Returns the value of attribute rkey.



5899
5900
5901
# File 'lib/bskyrb/generated_classes.rb', line 5899

def rkey
  @rkey
end

Class Method Details

.from_hash(hash) ⇒ Object



5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
# File 'lib/bskyrb/generated_classes.rb', line 5903

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

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

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

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

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

  instance
end

Instance Method Details

#to_hObject



5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
# File 'lib/bskyrb/generated_classes.rb', line 5918

def to_h
  {

    "did" => did,

    "collection" => collection,

    "rkey" => rkey,

    "commit" => commit

  }
end