Class: Imageomatic::Opengraph::Model
- Inherits:
-
Base
- Object
- Base
- Imageomatic::Opengraph::Model
show all
- Defined in:
- app/models/imageomatic/opengraph/model.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize, properties, #properties, property
Instance Method Details
#image ⇒ Object
13
14
15
|
# File 'app/models/imageomatic/opengraph/model.rb', line 13
def image
@image ||= Image.new
end
|
#image=(url) ⇒ Object
17
18
19
|
# File 'app/models/imageomatic/opengraph/model.rb', line 17
def image=(url)
image.url = url
end
|
21
22
23
24
25
26
27
|
# File 'app/models/imageomatic/opengraph/model.rb', line 21
def
@twitter ||= Twitter.new.tap do ||
.title = title
.description = description
.image = image.url
end
end
|