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.



39
40
41
42
# File 'lib/Models/Paragraph.rb', line 39

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

Instance Attribute Details

#idObject

Returns the value of attribute id.



38
39
40
# File 'lib/Models/Paragraph.rb', line 38

def id
  @id
end

#typeObject

Returns the value of attribute type.



38
39
40
# File 'lib/Models/Paragraph.rb', line 38

def type
  @type
end