Class: Instaclient::Models::Embed

Inherits:
Object
  • Object
show all
Defined in:
lib/instaclient/models/embed.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#rawObject

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_idObject



30
31
32
# File 'lib/instaclient/models/embed.rb', line 30

def author_id
  raw["author_id"]
end

#author_nameObject



10
11
12
# File 'lib/instaclient/models/embed.rb', line 10

def author_name
  raw["author_name"]
end

#author_urlObject



26
27
28
# File 'lib/instaclient/models/embed.rb', line 26

def author_url
  raw["author_url"]
end

#htmlObject



18
19
20
# File 'lib/instaclient/models/embed.rb', line 18

def html
  raw["html"]
end

#thumbnailObject



22
23
24
# File 'lib/instaclient/models/embed.rb', line 22

def thumbnail
  raw["thumbnail_url"]
end

#titleObject



14
15
16
# File 'lib/instaclient/models/embed.rb', line 14

def title
  raw["title"]
end