Class: Imagga::Image
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(opts) ⇒ Image
constructor
A new instance of Image.
Methods included from Exceptions
#raise_if_request_failed!, #raise_missing
Constructor Details
#initialize(opts) ⇒ Image
Returns a new instance of Image.
8 9 10 11 |
# File 'lib/imagga/image.rb', line 8 def initialize(opts) @url = opts[:url] || raise_missing(:url) @id = opts[:id] || 0 end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/imagga/image.rb', line 6 def id @id end |
#url ⇒ Object
Returns the value of attribute url.
6 7 8 |
# File 'lib/imagga/image.rb', line 6 def url @url end |