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.



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

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

Instance Attribute Details

#completeObject

Returns the value of attribute complete.



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

def complete
  @complete
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#invalidObject

Returns the value of attribute invalid.



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

def invalid
  @invalid
end

#photoidObject

Returns the value of attribute photoid.



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

def photoid
  @photoid
end

Instance Method Details

#checkObject



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