Class: SmstoolsApi::Client
- Inherits:
-
Object
- Object
- SmstoolsApi::Client
- Extended by:
- Forwardable
- Defined in:
- lib/smstools_api/client.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
-
#voice_messages ⇒ Object
readonly
Returns the value of attribute voice_messages.
Instance Method Summary collapse
-
#initialize(config = {}) ⇒ Client
constructor
A new instance of Client.
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
#config ⇒ Object (readonly)
Returns the value of attribute config.
12 13 14 |
# File 'lib/smstools_api/client.rb', line 12 def config @config end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
12 13 14 |
# File 'lib/smstools_api/client.rb', line 12 def @messages end |
#voice_messages ⇒ Object (readonly)
Returns the value of attribute voice_messages.
12 13 14 |
# File 'lib/smstools_api/client.rb', line 12 def @voice_messages end |