Class: Paragraph::MetaData
- Inherits:
-
Object
- Object
- Paragraph::MetaData
- Defined in:
- lib/Models/Paragraph.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(json) ⇒ MetaData
constructor
A new instance of MetaData.
Constructor Details
#initialize(json) ⇒ MetaData
Returns a new instance of MetaData.
39 40 41 42 |
# File 'lib/Models/Paragraph.rb', line 39 def initialize(json) @id = json['id'] @type = json['__typename'] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
38 39 40 |
# File 'lib/Models/Paragraph.rb', line 38 def id @id end |
#type ⇒ Object
Returns the value of attribute type.
38 39 40 |
# File 'lib/Models/Paragraph.rb', line 38 def type @type end |