Class: Flickrie::MediaCount
- Inherits:
-
Object
- Object
- Flickrie::MediaCount
- Defined in:
- lib/flickrie/objects/media_count.rb
Instance Attribute Summary collapse
- #date_range ⇒ Range (also: #time_interval) readonly
- #from ⇒ Time readonly
-
#hash ⇒ Hash
readonly
Returns the raw hash from the response.
- #to ⇒ Time readonly
- #value ⇒ Object readonly
Instance Method Summary collapse
Instance Attribute Details
#date_range ⇒ Range (readonly) Also known as: time_interval
11 12 13 |
# File 'lib/flickrie/objects/media_count.rb', line 11 def date_range @date_range end |
#from ⇒ Time (readonly)
26 27 28 |
# File 'lib/flickrie/objects/media_count.rb', line 26 def from @from end |
#hash ⇒ Hash (readonly)
Returns the raw hash from the response. Useful if something isn't available by methods.
34 35 36 |
# File 'lib/flickrie/objects/media_count.rb', line 34 def hash @hash end |
#to ⇒ Time (readonly)
28 29 30 |
# File 'lib/flickrie/objects/media_count.rb', line 28 def to @to end |
#value ⇒ Object (readonly)
8 |
# File 'lib/flickrie/objects/media_count.rb', line 8 def value() Integer(@hash['count']) rescue nil end |
Instance Method Details
#[](key) ⇒ Object
30 |
# File 'lib/flickrie/objects/media_count.rb', line 30 def [](key) @hash[key] end |