Class: Bskyrb::ComAtprotoRepoGetrecord::GetRecord::Output

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.



4793
4794
4795
# File 'lib/bskyrb/generated_classes.rb', line 4793

def cid
  @cid
end

#uriObject

Returns the value of attribute uri.



4791
4792
4793
# File 'lib/bskyrb/generated_classes.rb', line 4791

def uri
  @uri
end

#valueObject

Returns the value of attribute value.



4795
4796
4797
# File 'lib/bskyrb/generated_classes.rb', line 4795

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
# File 'lib/bskyrb/generated_classes.rb', line 4797

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

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

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

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

  instance
end

Instance Method Details

#to_hObject



4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
# File 'lib/bskyrb/generated_classes.rb', line 4810

def to_h
  {

    "uri" => uri,

    "cid" => cid,

    "value" => value

  }
end