Class: ZenSend::OperatorLookupResponse
- Inherits:
-
Struct
- Object
- Struct
- ZenSend::OperatorLookupResponse
- Defined in:
- lib/zensend/operator_lookup_response.rb,
lib/zensend/operator_lookup_response.rb
Instance Attribute Summary collapse
-
#cost_in_pence ⇒ Object
Returns the value of attribute cost_in_pence.
-
#mcc ⇒ Object
Returns the value of attribute mcc.
-
#mnc ⇒ Object
Returns the value of attribute mnc.
-
#new_balance_in_pence ⇒ Object
Returns the value of attribute new_balance_in_pence.
-
#operator ⇒ Object
Returns the value of attribute operator.
Instance Method Summary collapse
Instance Attribute Details
#cost_in_pence ⇒ Object
Returns the value of attribute cost_in_pence
2 3 4 |
# File 'lib/zensend/operator_lookup_response.rb', line 2 def cost_in_pence @cost_in_pence end |
#mcc ⇒ Object
Returns the value of attribute mcc
2 3 4 |
# File 'lib/zensend/operator_lookup_response.rb', line 2 def mcc @mcc end |
#mnc ⇒ Object
Returns the value of attribute mnc
2 3 4 |
# File 'lib/zensend/operator_lookup_response.rb', line 2 def mnc @mnc end |
#new_balance_in_pence ⇒ Object
Returns the value of attribute new_balance_in_pence
2 3 4 |
# File 'lib/zensend/operator_lookup_response.rb', line 2 def new_balance_in_pence @new_balance_in_pence end |
#operator ⇒ Object
Returns the value of attribute operator
2 3 4 |
# File 'lib/zensend/operator_lookup_response.rb', line 2 def operator @operator end |
Instance Method Details
#set_from_response(response_hash) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/zensend/operator_lookup_response.rb', line 6 def set_from_response(response_hash) self.mnc = response_hash["mnc"] self.mcc = response_hash["mcc"] self.operator = response_hash["operator"] self.new_balance_in_pence = response_hash["new_balance_in_pence"] self.cost_in_pence = response_hash["cost_in_pence"] end |