Class: Flickr::Uploader::Status

Inherits:
Object
  • Object
show all
Defined in:
lib/flickr/status.rb

Overview

wrapper class to hold a flickr upload status object.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_proObject

Returns the value of attribute is_pro.



4
5
6
# File 'lib/flickr/status.rb', line 4

def is_pro
  @is_pro
end

#max_bandwidthObject

Returns the value of attribute max_bandwidth.



4
5
6
# File 'lib/flickr/status.rb', line 4

def max_bandwidth
  @max_bandwidth
end

#max_filesizeObject

Returns the value of attribute max_filesize.



4
5
6
# File 'lib/flickr/status.rb', line 4

def max_filesize
  @max_filesize
end

#max_videosizeObject

Returns the value of attribute max_videosize.



4
5
6
# File 'lib/flickr/status.rb', line 4

def max_videosize
  @max_videosize
end

#nsidObject

Returns the value of attribute nsid.



4
5
6
# File 'lib/flickr/status.rb', line 4

def nsid
  @nsid
end

#remaining_bandwidthObject

Returns the value of attribute remaining_bandwidth.



4
5
6
# File 'lib/flickr/status.rb', line 4

def remaining_bandwidth
  @remaining_bandwidth
end

#sets_createdObject

Returns the value of attribute sets_created.



4
5
6
# File 'lib/flickr/status.rb', line 4

def sets_created
  @sets_created
end

#sets_remainingObject

Returns the value of attribute sets_remaining.



4
5
6
# File 'lib/flickr/status.rb', line 4

def sets_remaining
  @sets_remaining
end

#used_bandwidthObject

Returns the value of attribute used_bandwidth.



4
5
6
# File 'lib/flickr/status.rb', line 4

def used_bandwidth
  @used_bandwidth
end

#usernameObject

Returns the value of attribute username.



4
5
6
# File 'lib/flickr/status.rb', line 4

def username
  @username
end