Class: Paragraph::Iframe
- Inherits:
-
Object
- Object
- Paragraph::Iframe
- Defined in:
- lib/Models/Paragraph.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#src ⇒ Object
Returns the value of attribute src.
-
#title ⇒ Object
Returns the value of attribute title.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(json) ⇒ Iframe
constructor
A new instance of Iframe.
- #parse ⇒ Object
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
#id ⇒ Object
Returns the value of attribute id.
11 12 13 |
# File 'lib/Models/Paragraph.rb', line 11 def id @id end |
#src ⇒ Object
Returns the value of attribute src.
11 12 13 |
# File 'lib/Models/Paragraph.rb', line 11 def src @src end |
#title ⇒ Object
Returns the value of attribute title.
11 12 13 |
# File 'lib/Models/Paragraph.rb', line 11 def title @title end |
#type ⇒ Object
Returns the value of attribute type.
11 12 13 |
# File 'lib/Models/Paragraph.rb', line 11 def type @type end |
Instance Method Details
#parse ⇒ Object
19 20 21 |
# File 'lib/Models/Paragraph.rb', line 19 def parse() end |