Class: Bskyrb::ComAtprotoRepoApplywrites::Update

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#collectionObject

Returns the value of attribute collection.



1697
1698
1699
# File 'lib/bskyrb/generated_classes.rb', line 1697

def collection
  @collection
end

#rkeyObject

Returns the value of attribute rkey.



1699
1700
1701
# File 'lib/bskyrb/generated_classes.rb', line 1699

def rkey
  @rkey
end

#valueObject

Returns the value of attribute value.



1701
1702
1703
# File 'lib/bskyrb/generated_classes.rb', line 1701

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
# File 'lib/bskyrb/generated_classes.rb', line 1703

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

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

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

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

  instance
end