Sha256: 591f56fd648da178d219f1e36afaa202d80c3b12cbd90ffa5a431396a00694e8

Contents?: true

Size: 453 Bytes

Versions: 1

Compression:

Stored size: 453 Bytes

Contents

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

  	def logs(options = {})
  	  SuperReceptionist.submit(:get,call_url('call'), options)
  	end

  	def makecall(options = {})
  	  SuperReceptionist.submit(:post,call_url('account/call/makecall'), options)
  	end

  	private

  	def call_url(path)
  	  @super_receptionis.base_url + path
  	end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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