Class: SMSApi::Response::Regular

Inherits:
SMSApi::Response show all
Defined in:
lib/client_smsapi/response/regular.rb

Constant Summary

Constants inherited from SMSApi::Response

ALLOWED_STATUSES, InvalidStatus

Instance Attribute Summary collapse

Attributes inherited from SMSApi::Response

#status

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/client_smsapi/response/regular.rb', line 4

def id
  @id
end

#pointsObject (readonly)

Returns the value of attribute points.



4
5
6
# File 'lib/client_smsapi/response/regular.rb', line 4

def points
  @points
end