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