Class: Flickr::Object::UploadTicket

Inherits:
Flickr::Object show all
Defined in:
lib/flickr/object/upload_ticket.rb,
lib/flickr/object/attribute_locations/upload_ticket.rb

Instance Attribute Summary collapse

Attributes inherited from Flickr::Object

#access_token, #attributes

Instance Method Summary collapse

Methods inherited from Flickr::Object

#==, #[], attribute, #initialize, #inspect, #matches?, #update

Methods included from Attributes

#attribute, #attributes

Methods included from AutoloadHelper

#autoload_dir, #autoload_names

Constructor Details

This class inherits a constructor from Flickr::Object

Instance Attribute Details

#completeBoolean (readonly)

Returns:



9
# File 'lib/flickr/object/upload_ticket.rb', line 9

attribute :complete, Boolean

#failedBoolean (readonly)

Returns:



10
# File 'lib/flickr/object/upload_ticket.rb', line 10

attribute :failed,   Boolean

#idString (readonly)

Returns:



6
# File 'lib/flickr/object/upload_ticket.rb', line 6

attribute :id,       String

#invalidBoolean (readonly)

Returns:



13
# File 'lib/flickr/object/upload_ticket.rb', line 13

attribute :invalid,  Boolean

#photoPhoto (readonly)

Returns:



15
# File 'lib/flickr/object/upload_ticket.rb', line 15

attribute :photo,    Photo

#statusInteger (readonly)

Returns:



8
# File 'lib/flickr/object/upload_ticket.rb', line 8

attribute :status,   Integer

#validBoolean (readonly)

Returns:



12
# File 'lib/flickr/object/upload_ticket.rb', line 12

attribute :valid,    Boolean

Instance Method Details

#get_info!(params = {}) ⇒ self

See Also:

Returns:



21
22
23
24
# File 'lib/flickr/object/upload_ticket.rb', line 21

def get_info!(params = {})
  ticket = api.check(id, params).first
  update(ticket.attributes)
end