Class: Flickr::Ticket

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

Constant Summary collapse

COMPLETE =
[:incomplete,:completed,:failed]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, upload) ⇒ Ticket

Returns a new instance of Ticket.



12
13
14
15
# File 'lib/flickr/upload.rb', line 12

def initialize(id,upload)
  @id = id
  @upload = upload
end

Instance Attribute Details

#completeObject

Returns the value of attribute complete.



8
9
10
# File 'lib/flickr/upload.rb', line 8

def complete
  @complete
end

#idObject (readonly)

Returns the value of attribute id.



7
8
9
# File 'lib/flickr/upload.rb', line 7

def id
  @id
end

#invalidObject

Returns the value of attribute invalid.



8
9
10
# File 'lib/flickr/upload.rb', line 8

def invalid
  @invalid
end

#photoidObject

Returns the value of attribute photoid.



8
9
10
# File 'lib/flickr/upload.rb', line 8

def photoid
  @photoid
end

Instance Method Details

#checkObject



17
18
19
20
21
22
23
# File 'lib/flickr/upload.rb', line 17

def check
  t = @upload.checkTickets(self)[0]
  self.complete = t.complete
  self.invalid = t.invalid
  self.photoid = t.photoid
  return t
end