Class: Paragraph::Iframe

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ Iframe

Returns a new instance of Iframe.



12
13
14
15
16
17
# File 'lib/Models/Paragraph.rb', line 12

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

Instance Attribute Details

#idObject

Returns the value of attribute id.



11
12
13
# File 'lib/Models/Paragraph.rb', line 11

def id
  @id
end

#srcObject

Returns the value of attribute src.



11
12
13
# File 'lib/Models/Paragraph.rb', line 11

def src
  @src
end

#titleObject

Returns the value of attribute title.



11
12
13
# File 'lib/Models/Paragraph.rb', line 11

def title
  @title
end

#typeObject

Returns the value of attribute type.



11
12
13
# File 'lib/Models/Paragraph.rb', line 11

def type
  @type
end

Instance Method Details

#parseObject



19
20
21
# File 'lib/Models/Paragraph.rb', line 19

def parse()

end