Class: Flickr::Uploader::Status
Overview
wrapper class to hold a flickr upload status object.
Instance Attribute Summary collapse
-
#is_pro ⇒ Object
Returns the value of attribute is_pro.
-
#max_bandwidth ⇒ Object
Returns the value of attribute max_bandwidth.
-
#max_filesize ⇒ Object
Returns the value of attribute max_filesize.
-
#max_videosize ⇒ Object
Returns the value of attribute max_videosize.
-
#nsid ⇒ Object
Returns the value of attribute nsid.
-
#remaining_bandwidth ⇒ Object
Returns the value of attribute remaining_bandwidth.
-
#sets_created ⇒ Object
Returns the value of attribute sets_created.
-
#sets_remaining ⇒ Object
Returns the value of attribute sets_remaining.
-
#used_bandwidth ⇒ Object
Returns the value of attribute used_bandwidth.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(flickr, attributes) ⇒ Status
constructor
create a new instance of a flickr upload status object.
Constructor Details
#initialize(flickr, attributes) ⇒ Status
create a new instance of a flickr upload status object.
Params
-
flickr (Required)
the flickr object
-
attributes (Required)
a hash of attributes used to set the initial values of the status object
13 14 15 16 17 18 |
# File 'lib/flickr/status.rb', line 13 def initialize(flickr, attributes) @flickr = flickr attributes.each do |k,v| send("#{k}=", v) end end |
Instance Attribute Details
#is_pro ⇒ Object
Returns the value of attribute is_pro.
4 5 6 |
# File 'lib/flickr/status.rb', line 4 def is_pro @is_pro end |
#max_bandwidth ⇒ Object
Returns the value of attribute max_bandwidth.
4 5 6 |
# File 'lib/flickr/status.rb', line 4 def max_bandwidth @max_bandwidth end |
#max_filesize ⇒ Object
Returns the value of attribute max_filesize.
4 5 6 |
# File 'lib/flickr/status.rb', line 4 def max_filesize @max_filesize end |
#max_videosize ⇒ Object
Returns the value of attribute max_videosize.
4 5 6 |
# File 'lib/flickr/status.rb', line 4 def max_videosize @max_videosize end |
#nsid ⇒ Object
Returns the value of attribute nsid.
4 5 6 |
# File 'lib/flickr/status.rb', line 4 def nsid @nsid end |
#remaining_bandwidth ⇒ Object
Returns the value of attribute remaining_bandwidth.
4 5 6 |
# File 'lib/flickr/status.rb', line 4 def remaining_bandwidth @remaining_bandwidth end |
#sets_created ⇒ Object
Returns the value of attribute sets_created.
4 5 6 |
# File 'lib/flickr/status.rb', line 4 def sets_created @sets_created end |
#sets_remaining ⇒ Object
Returns the value of attribute sets_remaining.
4 5 6 |
# File 'lib/flickr/status.rb', line 4 def sets_remaining @sets_remaining end |
#used_bandwidth ⇒ Object
Returns the value of attribute used_bandwidth.
4 5 6 |
# File 'lib/flickr/status.rb', line 4 def used_bandwidth @used_bandwidth end |
#username ⇒ Object
Returns the value of attribute username.
4 5 6 |
# File 'lib/flickr/status.rb', line 4 def username @username end |