Class: SMSApi::Response::Regular
- Inherits:
-
SMSApi::Response
- Object
- SMSApi::Response
- SMSApi::Response::Regular
- Defined in:
- lib/client_smsapi/response/regular.rb
Constant Summary
Constants inherited from SMSApi::Response
ALLOWED_STATUSES, InvalidStatus
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#points ⇒ Object
readonly
Returns the value of attribute points.
Attributes inherited from SMSApi::Response
Instance Method Summary collapse
-
#initialize(id, points) ⇒ Regular
constructor
A new instance of Regular.
Constructor Details
#initialize(id, points) ⇒ Regular
Returns a new instance of Regular.
6 7 8 9 10 11 |
# File 'lib/client_smsapi/response/regular.rb', line 6 def initialize(id, points) @id = id.to_i @points = points.to_f super(:ok) end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/client_smsapi/response/regular.rb', line 4 def id @id end |
#points ⇒ Object (readonly)
Returns the value of attribute points.
4 5 6 |
# File 'lib/client_smsapi/response/regular.rb', line 4 def points @points end |