Class: Bskyrb::AppBskyFeedPost::Entity
- Inherits:
-
Object
- Object
- Bskyrb::AppBskyFeedPost::Entity
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index.
693 694 695 |
# File 'lib/bskyrb/generated_classes.rb', line 693 def index @index end |
#value ⇒ Object
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 |