Class: Bskyrb::ComAtprotoSyncGetrecord::GetRecord::Input
- Inherits:
-
Object
- Object
- Bskyrb::ComAtprotoSyncGetrecord::GetRecord::Input
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#collection ⇒ Object
Returns the value of attribute collection.
-
#commit ⇒ Object
Returns the value of attribute commit.
-
#did ⇒ Object
Returns the value of attribute did.
-
#rkey ⇒ Object
Returns the value of attribute rkey.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#collection ⇒ Object
Returns the value of attribute collection.
5897 5898 5899 |
# File 'lib/bskyrb/generated_classes.rb', line 5897 def collection @collection end |
#commit ⇒ Object
Returns the value of attribute commit.
5901 5902 5903 |
# File 'lib/bskyrb/generated_classes.rb', line 5901 def commit @commit end |
#did ⇒ Object
Returns the value of attribute did.
5895 5896 5897 |
# File 'lib/bskyrb/generated_classes.rb', line 5895 def did @did end |
#rkey ⇒ Object
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_h ⇒ Object
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 |