Class: Sms::Smsru

Inherits:
SmsLayer show all
Defined in:
lib/smster/sms/smsru.rb

Constant Summary

Constants inherited from Sms

STATUSES

Instance Attribute Summary collapse

Attributes inherited from Sms

#api_message_id, #balance, #cost, #name, #status, #status_message, #text, #to, #type

Instance Method Summary collapse

Methods inherited from SmsLayer

#send_sms

Methods inherited from Sms

#initialize, send_sms

Constructor Details

This class inherits a constructor from Sms

Instance Attribute Details

#smsru_api_idObject

Returns the value of attribute smsru_api_id.



2
3
4
# File 'lib/smster/sms/smsru.rb', line 2

def smsru_api_id
  @smsru_api_id
end

#testObject

Returns the value of attribute test.



2
3
4
# File 'lib/smster/sms/smsru.rb', line 2

def test
  @test
end

Instance Method Details

#calc_costObject



8
9
10
# File 'lib/smster/sms/smsru.rb', line 8

def calc_cost
  extract_from(request_cost, /\n(.*)\n?/)
end