Class: Paragraph::MetaData

Inherits:
Object
  • Object
show all
Defined in:
lib/Models/Paragraph.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ MetaData

Returns a new instance of MetaData.



25
26
27
28
# File 'lib/Models/Paragraph.rb', line 25

def initialize(json)
    @id = json['id']
    @type = json['__typename']
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



24
25
26
# File 'lib/Models/Paragraph.rb', line 24

def id
  @id
end

#typeObject

Returns the value of attribute type.



24
25
26
# File 'lib/Models/Paragraph.rb', line 24

def type
  @type
end