Class: Fizzy::Types::Reaction
- Inherits:
-
Data
- Object
- Data
- Fizzy::Types::Reaction
- Defined in:
- lib/fizzy/generated/types.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#reacter ⇒ Object
readonly
Returns the value of attribute reacter.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Class Method Summary collapse
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content
784 785 786 |
# File 'lib/fizzy/generated/types.rb', line 784 def content @content end |
#id ⇒ Object (readonly)
Returns the value of attribute id
784 785 786 |
# File 'lib/fizzy/generated/types.rb', line 784 def id @id end |
#reacter ⇒ Object (readonly)
Returns the value of attribute reacter
784 785 786 |
# File 'lib/fizzy/generated/types.rb', line 784 def reacter @reacter end |
#url ⇒ Object (readonly)
Returns the value of attribute url
784 785 786 |
# File 'lib/fizzy/generated/types.rb', line 784 def url @url end |
Class Method Details
.from_json(data) ⇒ Object
786 787 788 789 790 791 792 793 |
# File 'lib/fizzy/generated/types.rb', line 786 def self.from_json(data) new( id: data["id"], content: data["content"], reacter: data["reacter"], url: data["url"] ) end |