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.



31
32
33
34
# File 'lib/flickr/upload.rb', line 31

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

Instance Attribute Details

#completeObject

Returns the value of attribute complete.



27
28
29
# File 'lib/flickr/upload.rb', line 27

def complete
  @complete
end

#idObject (readonly)

Returns the value of attribute id.



26
27
28
# File 'lib/flickr/upload.rb', line 26

def id
  @id
end

#invalidObject

Returns the value of attribute invalid.



27
28
29
# File 'lib/flickr/upload.rb', line 27

def invalid
  @invalid
end

#photoidObject

Returns the value of attribute photoid.



27
28
29
# File 'lib/flickr/upload.rb', line 27

def photoid
  @photoid
end

Instance Method Details

#checkObject



36
37
38
39
40
41
42
# File 'lib/flickr/upload.rb', line 36

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