Class: Bskyrb::ComAtprotoRepoListrecords::Record

Inherits:
Object
  • Object
show all
Defined in:
lib/bskyrb/generated_classes.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#cidObject

Returns the value of attribute cid.



1741
1742
1743
# File 'lib/bskyrb/generated_classes.rb', line 1741

def cid
  @cid
end

#uriObject

Returns the value of attribute uri.



1739
1740
1741
# File 'lib/bskyrb/generated_classes.rb', line 1739

def uri
  @uri
end

#valueObject

Returns the value of attribute value.



1743
1744
1745
# File 'lib/bskyrb/generated_classes.rb', line 1743

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
# File 'lib/bskyrb/generated_classes.rb', line 1745

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