Class: EmbeditGem
Instance Method Summary collapse
- #fbml ⇒ Object
- #format ⇒ Object
- #html ⇒ Object
-
#initialize(url, options = {}) ⇒ EmbeditGem
constructor
A new instance of EmbeditGem.
- #title ⇒ Object
- #valid? ⇒ Boolean
Constructor Details
#initialize(url, options = {}) ⇒ EmbeditGem
Returns a new instance of EmbeditGem.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/embedit_gem.rb', line 9 def initialize(url, ={}) api_key, frog_key = [:api_key], [:frog_key] height, width = [:height], [:width] @data = EmbeditGem.get("/", :query => { :url => url, :height => height, :width => width, :api_key => api_key, :frog_key => frog_key } ) end |
Instance Method Details
#fbml ⇒ Object
38 39 40 |
# File 'lib/embedit_gem.rb', line 38 def fbml @data['fbml'] end |
#format ⇒ Object
34 35 36 |
# File 'lib/embedit_gem.rb', line 34 def format @data['format'] end |
#html ⇒ Object
22 23 24 |
# File 'lib/embedit_gem.rb', line 22 def html @data['html'] end |
#title ⇒ Object
26 27 28 |
# File 'lib/embedit_gem.rb', line 26 def title @data['title'] end |
#valid? ⇒ Boolean
30 31 32 |
# File 'lib/embedit_gem.rb', line 30 def valid? @data['valid'] end |