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.
54 55 56 57 |
# File 'lib/Models/Paragraph.rb', line 54 def initialize(json) @id = json['id'] @type = json['__typename'] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
53 54 55 |
# File 'lib/Models/Paragraph.rb', line 53 def id @id end |
#type ⇒ Object
Returns the value of attribute type.
53 54 55 |
# File 'lib/Models/Paragraph.rb', line 53 def type @type end |