Sha256: f46726bbaf810f18820d237bf83341d907bd1bdfc2d44f1c308010b12511d810

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

module SuperReceptionist
  class Agent
    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/agent/#{path}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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