Class: CTM::ReceivingNumber
Instance Attribute Summary collapse
-
#account_id ⇒ Object
readonly
Returns the value of attribute account_id.
-
#formatted ⇒ Object
Returns the value of attribute formatted.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#number ⇒ Object
Returns the value of attribute number.
-
#split ⇒ Object
Returns the value of attribute split.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(data, token = nil) ⇒ ReceivingNumber
constructor
A new instance of ReceivingNumber.
- #save ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(data, token = nil) ⇒ ReceivingNumber
Returns a new instance of ReceivingNumber.
6 7 8 9 10 11 12 13 14 |
# File 'lib/ctm/receiving_number.rb', line 6 def initialize(data, token=nil) super(data, token) @id = data['id'] @account_id = data['account_id'] @name = data['name'] @number = data['number'] @formatted = data['formatted'] @split = data['split'] end |
Instance Attribute Details
#account_id ⇒ Object (readonly)
Returns the value of attribute account_id.
3 4 5 |
# File 'lib/ctm/receiving_number.rb', line 3 def account_id @account_id end |
#formatted ⇒ Object
Returns the value of attribute formatted.
4 5 6 |
# File 'lib/ctm/receiving_number.rb', line 4 def formatted @formatted end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/ctm/receiving_number.rb', line 3 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/ctm/receiving_number.rb', line 4 def name @name end |
#number ⇒ Object
Returns the value of attribute number.
4 5 6 |
# File 'lib/ctm/receiving_number.rb', line 4 def number @number end |
#split ⇒ Object
Returns the value of attribute split.
4 5 6 |
# File 'lib/ctm/receiving_number.rb', line 4 def split @split end |
Instance Method Details
#save ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/ctm/receiving_number.rb', line 16 def save = { :name => @name, :number => @number } super() end |