Class: Sms::Smsru
Constant Summary
Constants inherited from Sms
Instance Attribute Summary collapse
-
#smsru_api_id ⇒ Object
Returns the value of attribute smsru_api_id.
-
#test ⇒ Object
Returns the value of attribute test.
Attributes inherited from Sms
#api_message_id, #balance, #cost, #name, #status, #status_message, #text, #to, #type
Instance Method Summary collapse
Methods inherited from SmsLayer
Methods inherited from Sms
Constructor Details
This class inherits a constructor from Sms
Instance Attribute Details
#smsru_api_id ⇒ Object
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 |
#test ⇒ Object
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_cost ⇒ Object
8 9 10 |
# File 'lib/smster/sms/smsru.rb', line 8 def calc_cost extract_from(request_cost, /\n(.*)\n?/) end |