Class: Instaclient::Models::Embed
- Inherits:
-
Object
- Object
- Instaclient::Models::Embed
- Defined in:
- lib/instaclient/models/embed.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
Returns the value of attribute raw.
Instance Method Summary collapse
- #author_id ⇒ Object
- #author_name ⇒ Object
- #author_url ⇒ Object
- #html ⇒ Object
-
#initialize(data) ⇒ Embed
constructor
A new instance of Embed.
- #thumbnail ⇒ Object
- #title ⇒ Object
Constructor Details
#initialize(data) ⇒ Embed
Returns a new instance of Embed.
6 7 8 |
# File 'lib/instaclient/models/embed.rb', line 6 def initialize(data) @raw = data end |
Instance Attribute Details
#raw ⇒ Object
Returns the value of attribute raw.
4 5 6 |
# File 'lib/instaclient/models/embed.rb', line 4 def raw @raw end |
Instance Method Details
#author_id ⇒ Object
30 31 32 |
# File 'lib/instaclient/models/embed.rb', line 30 def raw["author_id"] end |
#author_name ⇒ Object
10 11 12 |
# File 'lib/instaclient/models/embed.rb', line 10 def raw["author_name"] end |
#author_url ⇒ Object
26 27 28 |
# File 'lib/instaclient/models/embed.rb', line 26 def raw["author_url"] end |
#html ⇒ Object
18 19 20 |
# File 'lib/instaclient/models/embed.rb', line 18 def html raw["html"] end |
#thumbnail ⇒ Object
22 23 24 |
# File 'lib/instaclient/models/embed.rb', line 22 def thumbnail raw["thumbnail_url"] end |
#title ⇒ Object
14 15 16 |
# File 'lib/instaclient/models/embed.rb', line 14 def title raw["title"] end |