Class: TinyZap::OpenGraph::Model
- Inherits:
-
Base
- Object
- Base
- TinyZap::OpenGraph::Model
show all
- Defined in:
- app/models/tinyzap/open_graph/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/tinyzap/open_graph/model.rb', line 13
def image
@image ||= Image.new
end
|
#image=(url) ⇒ Object
17
18
19
|
# File 'app/models/tinyzap/open_graph/model.rb', line 17
def image=(url)
image.url = url
end
|
21
22
23
24
25
26
27
|
# File 'app/models/tinyzap/open_graph/model.rb', line 21
def
@twitter ||= Twitter.new.tap do ||
.title = title
.description = description
.image = image.url
end
end
|