Class: Flickr::Ticket
- Inherits:
-
Object
- Object
- Flickr::Ticket
- Defined in:
- lib/flickr/upload.rb
Constant Summary collapse
- COMPLETE =
[:incomplete,:completed,:failed]
Instance Attribute Summary collapse
-
#complete ⇒ Object
Returns the value of attribute complete.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#invalid ⇒ Object
Returns the value of attribute invalid.
-
#photoid ⇒ Object
Returns the value of attribute photoid.
Instance Method Summary collapse
- #check ⇒ Object
-
#initialize(id, upload) ⇒ Ticket
constructor
A new instance of Ticket.
Constructor Details
#initialize(id, upload) ⇒ Ticket
Returns a new instance of Ticket.
11 12 13 14 |
# File 'lib/flickr/upload.rb', line 11 def initialize(id,upload) @id = id @upload = upload end |
Instance Attribute Details
#complete ⇒ Object
Returns the value of attribute complete.
7 8 9 |
# File 'lib/flickr/upload.rb', line 7 def complete @complete end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/flickr/upload.rb', line 6 def id @id end |
#invalid ⇒ Object
Returns the value of attribute invalid.
7 8 9 |
# File 'lib/flickr/upload.rb', line 7 def invalid @invalid end |
#photoid ⇒ Object
Returns the value of attribute photoid.
7 8 9 |
# File 'lib/flickr/upload.rb', line 7 def photoid @photoid end |
Instance Method Details
#check ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/flickr/upload.rb', line 16 def check t = @upload.checkTickets(self)[0] self.complete = t.complete self.invalid = t.invalid self.photoid = t.photoid return t end |