Class: SmstoolsApi::Client

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/smstools_api/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config = {}) ⇒ Client

Returns a new instance of Client.



14
15
16
17
18
# File 'lib/smstools_api/client.rb', line 14

def initialize(config = {})
  @config = Hashie::Mash.new(config)
  @messages = Messages.new(self)
  @voice_messages = VoiceMessages.new(self)
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



12
13
14
# File 'lib/smstools_api/client.rb', line 12

def config
  @config
end

#messagesObject (readonly)

Returns the value of attribute messages.



12
13
14
# File 'lib/smstools_api/client.rb', line 12

def messages
  @messages
end

#voice_messagesObject (readonly)

Returns the value of attribute voice_messages.



12
13
14
# File 'lib/smstools_api/client.rb', line 12

def voice_messages
  @voice_messages
end