Sha256: 18df45bf70d7aad19a85ae52caff621035d69b7fbc0f9c453eeb6bb3d33e0573

Contents?: true

Size: 409 Bytes

Versions: 1

Compression:

Stored size: 409 Bytes

Contents

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

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

  	def create(options = {})
  	  SuperReceptionist.submit(:post, url, options)
  	end

  	private

  	def  url()
  	  "#{@super_receptionis.base_url}account/contacts/phonebook/"
  	end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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