Module: SuperReceptionist

Defined in:
lib/super_receptionist/base.rb,
lib/super_receptionist/call.rb,
lib/super_receptionist/plan.rb,
lib/super_receptionist/task.rb,
lib/super_receptionist/agent.rb,
lib/super_receptionist/sound.rb,
lib/super_receptionist/circle.rb,
lib/super_receptionist/client.rb,
lib/super_receptionist/number.rb,
lib/super_receptionist/version.rb,
lib/super_receptionist/campaign.rb,
lib/super_receptionist/phonebook.rb,
lib/super_receptionist/notification.rb

Defined Under Namespace

Classes: Agent, Base, Call, Campaign, Circle, Client, Notification, Number, Phonebook, Plan, Sound, Task

Constant Summary collapse

VERSION =
'0.1.0'.freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_hostObject

Returns the value of attribute api_host.



60
61
62
# File 'lib/super_receptionist/base.rb', line 60

def api_host
  @api_host
end

.api_versionObject

Returns the value of attribute api_version.



60
61
62
# File 'lib/super_receptionist/base.rb', line 60

def api_version
  @api_version
end

.authorizationObject

Returns the value of attribute authorization.



60
61
62
# File 'lib/super_receptionist/base.rb', line 60

def authorization
  @authorization
end

.channelObject

Returns the value of attribute channel.



60
61
62
# File 'lib/super_receptionist/base.rb', line 60

def channel
  @channel
end

.protocolObject

Returns the value of attribute protocol.



60
61
62
# File 'lib/super_receptionist/base.rb', line 60

def protocol
  @protocol
end

.test_modeObject

Returns the value of attribute test_mode.



60
61
62
# File 'lib/super_receptionist/base.rb', line 60

def test_mode
  @test_mode
end

.x_api_keyObject

Returns the value of attribute x_api_key.



60
61
62
# File 'lib/super_receptionist/base.rb', line 60

def x_api_key
  @x_api_key
end

Class Method Details

.configure {|_self| ... } ⇒ Object Also known as: config

Yields:

  • (_self)

Yield Parameters:



68
69
70
71
# File 'lib/super_receptionist/base.rb', line 68

def configure
  yield self
  true
end

.submit(method, url, parameters = {}) ⇒ Object



74
75
76
# File 'lib/super_receptionist/base.rb', line 74

def submit(method, url, parameters={})
  JSON.parse(Client.new(url).send(method, parameters))
end