Class: Smshelper::Api::Base

Inherits:
Object
  • Object
show all
Includes:
APISmith::Client
Defined in:
lib/smshelper/api/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Base

Returns a new instance of Base.



9
10
11
12
13
14
15
# File 'lib/smshelper/api/base.rb', line 9

def initialize(*args)
  @sent_message_ids, @sent_message_statuses = Array.new, Hash.new
  @response_code = ResponseCodes.new
  @extra_options = (args.empty? ? {} : args.shift)
  @uuid = UUID.new
  class_factory 'DeliveryReport', 'InboundMessage', 'UnknownReply', 'HlrReport'
end

Instance Attribute Details

#extra_optionsObject

Returns the value of attribute extra_options.



8
9
10
# File 'lib/smshelper/api/base.rb', line 8

def extra_options
  @extra_options
end

#sent_message_idsObject (readonly)

Returns the value of attribute sent_message_ids.



7
8
9
# File 'lib/smshelper/api/base.rb', line 7

def sent_message_ids
  @sent_message_ids
end

#sent_message_statusesObject (readonly)

Returns the value of attribute sent_message_statuses.



7
8
9
# File 'lib/smshelper/api/base.rb', line 7

def sent_message_statuses
  @sent_message_statuses
end