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.



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

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.



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

def id
  @id
end

#srcObject

Returns the value of attribute src.



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

def src
  @src
end

#titleObject

Returns the value of attribute title.



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

def title
  @title
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

Instance Method Details

#parseObject



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

def parse()

end