Sha256: 243e94ccef279c96a75b8f1ab4822ad3fab643adba43262e35a0620e508a9c6d

Contents?: true

Size: 388 Bytes

Versions: 1

Compression:

Stored size: 388 Bytes

Contents

module SuperReceptionist
  class Task
  	def initialize(super_receptionist)
  	  @super_receptionis = super_receptionist
  	end

  	def list
  	  SuperReceptionist.submit(:get, url())
  	end

  	def find(id)
  	  SuperReceptionist.submit(:get, url(id))
  	end

  	private

  	def url(path='')
  	  "#{@super_receptionis.base_url}account/tasks/#{path}"
  	end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
super_receptionist-0.1.0 lib/super_receptionist/task.rb