Class: Daylife::Image
Instance Attribute Summary collapse
-
#caption ⇒ Object
Returns the value of attribute caption.
-
#credit ⇒ Object
Returns the value of attribute credit.
-
#daylife_url ⇒ Object
Returns the value of attribute daylife_url.
-
#height ⇒ Object
Returns the value of attribute height.
-
#image_id ⇒ Object
Returns the value of attribute image_id.
-
#source ⇒ Object
Returns the value of attribute source.
-
#thumb_url ⇒ Object
Returns the value of attribute thumb_url.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
-
#url ⇒ Object
Returns the value of attribute url.
-
#width ⇒ Object
Returns the value of attribute width.
Class Method Summary collapse
- .core_identifier ⇒ Object
-
.get_info(image_id, parameters = {}) ⇒ Object
This function returns basic information about a given image.
-
.get_related_topics(image_id, parameters = {}) ⇒ Object
This method is used to retrieve topics that are related to the given image.
Methods inherited from API
auth, get, #initialize, methodize
Constructor Details
This class inherits a constructor from Daylife::API
Instance Attribute Details
#caption ⇒ Object
Returns the value of attribute caption.
3 4 5 |
# File 'lib/daylife/image.rb', line 3 def caption @caption end |
#credit ⇒ Object
Returns the value of attribute credit.
3 4 5 |
# File 'lib/daylife/image.rb', line 3 def credit @credit end |
#daylife_url ⇒ Object
Returns the value of attribute daylife_url.
3 4 5 |
# File 'lib/daylife/image.rb', line 3 def daylife_url @daylife_url end |
#height ⇒ Object
Returns the value of attribute height.
3 4 5 |
# File 'lib/daylife/image.rb', line 3 def height @height end |
#image_id ⇒ Object
Returns the value of attribute image_id.
3 4 5 |
# File 'lib/daylife/image.rb', line 3 def image_id @image_id end |
#source ⇒ Object
Returns the value of attribute source.
3 4 5 |
# File 'lib/daylife/image.rb', line 3 def source @source end |
#thumb_url ⇒ Object
Returns the value of attribute thumb_url.
3 4 5 |
# File 'lib/daylife/image.rb', line 3 def thumb_url @thumb_url end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
3 4 5 |
# File 'lib/daylife/image.rb', line 3 def end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/daylife/image.rb', line 3 def url @url end |
#width ⇒ Object
Returns the value of attribute width.
3 4 5 |
# File 'lib/daylife/image.rb', line 3 def width @width end |
Class Method Details
.core_identifier ⇒ Object
5 6 7 |
# File 'lib/daylife/image.rb', line 5 def self.core_identifier return :image_id end |
.get_info(image_id, parameters = {}) ⇒ Object
This function returns basic information about a given image.
10 11 12 |
# File 'lib/daylife/image.rb', line 10 def self.get_info(image_id, parameters={}) get :get_info, parameters.merge(:image_id => image_id) end |
.get_related_topics(image_id, parameters = {}) ⇒ Object
This method is used to retrieve topics that are related to the given image.
15 16 17 |
# File 'lib/daylife/image.rb', line 15 def self.(image_id, parameters={}) get :get_related_topics, parameters.merge(:image_id => image_id) end |