Class: Bskyrb::ComAtprotoRepoApplywrites::Create

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.



1674
1675
1676
# File 'lib/bskyrb/generated_classes.rb', line 1674

def collection
  @collection
end

#rkeyObject

Returns the value of attribute rkey.



1676
1677
1678
# File 'lib/bskyrb/generated_classes.rb', line 1676

def rkey
  @rkey
end

#valueObject

Returns the value of attribute value.



1678
1679
1680
# File 'lib/bskyrb/generated_classes.rb', line 1678

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
# File 'lib/bskyrb/generated_classes.rb', line 1680

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