Class: Bskyrb::ComAtprotoRepoGetrecord::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

#cidObject

Returns the value of attribute cid.



4758
4759
4760
# File 'lib/bskyrb/generated_classes.rb', line 4758

def cid
  @cid
end

#collectionObject

Returns the value of attribute collection.



4754
4755
4756
# File 'lib/bskyrb/generated_classes.rb', line 4754

def collection
  @collection
end

#repoObject

Returns the value of attribute repo.



4752
4753
4754
# File 'lib/bskyrb/generated_classes.rb', line 4752

def repo
  @repo
end

#rkeyObject

Returns the value of attribute rkey.



4756
4757
4758
# File 'lib/bskyrb/generated_classes.rb', line 4756

def rkey
  @rkey
end

Class Method Details

.from_hash(hash) ⇒ Object



4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
# File 'lib/bskyrb/generated_classes.rb', line 4760

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

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

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

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

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

  instance
end

Instance Method Details

#to_hObject



4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
# File 'lib/bskyrb/generated_classes.rb', line 4775

def to_h
  {

    "repo" => repo,

    "collection" => collection,

    "rkey" => rkey,

    "cid" => cid

  }
end