Class: Bskyrb::AppBskyFeedPost::Entity

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#indexObject

Returns the value of attribute index.



693
694
695
# File 'lib/bskyrb/generated_classes.rb', line 693

def index
  @index
end

#valueObject

Returns the value of attribute value.



695
696
697
# File 'lib/bskyrb/generated_classes.rb', line 695

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



697
698
699
700
701
702
703
704
705
706
# File 'lib/bskyrb/generated_classes.rb', line 697

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

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

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

  instance
end