Class: ActiveShipping::StampsAccountInfoResponse
- Defined in:
- lib/active_shipping/carriers/stamps.rb
Instance Attribute Summary collapse
-
#available_postage ⇒ Object
readonly
Returns the value of attribute available_postage.
-
#can_edit_cost_codes ⇒ Object
(also: #can_edit_cost_codes?)
readonly
Returns the value of attribute can_edit_cost_codes.
-
#can_print_international ⇒ Object
(also: #can_print_international?)
readonly
Returns the value of attribute can_print_international.
-
#can_print_memo ⇒ Object
(also: #can_print_memo?)
readonly
Returns the value of attribute can_print_memo.
-
#can_print_shipping ⇒ Object
(also: #can_print_shipping?)
readonly
Returns the value of attribute can_print_shipping.
-
#can_purchase_postage ⇒ Object
(also: #can_purchase_postage?)
readonly
Returns the value of attribute can_purchase_postage.
-
#can_purchase_sdc_insurance ⇒ Object
(also: #can_purchase_sdc_insurance?)
readonly
Returns the value of attribute can_purchase_sdc_insurance.
-
#can_use_cost_codes ⇒ Object
(also: #can_use_cost_codes?)
readonly
Returns the value of attribute can_use_cost_codes.
-
#can_use_hidden_postage ⇒ Object
(also: #can_use_hidden_postage?)
readonly
Returns the value of attribute can_use_hidden_postage.
-
#can_view_online_reports ⇒ Object
(also: #can_view_online_reports?)
readonly
Returns the value of attribute can_view_online_reports.
-
#control_total ⇒ Object
readonly
Returns the value of attribute control_total.
-
#customer_id ⇒ Object
readonly
Returns the value of attribute customer_id.
-
#lpo ⇒ Object
readonly
Returns the value of attribute lpo.
-
#max_postage_balance ⇒ Object
readonly
Returns the value of attribute max_postage_balance.
-
#meter_number ⇒ Object
readonly
Returns the value of attribute meter_number.
-
#must_use_cost_codes ⇒ Object
(also: #must_use_cost_codes?)
readonly
Returns the value of attribute must_use_cost_codes.
-
#per_print_limit ⇒ Object
readonly
Returns the value of attribute per_print_limit.
-
#user_id ⇒ Object
readonly
Returns the value of attribute user_id.
Attributes inherited from Response
#message, #params, #request, #test, #xml
Instance Method Summary collapse
-
#initialize(success, message, params = {}, options = {}) ⇒ StampsAccountInfoResponse
constructor
A new instance of StampsAccountInfoResponse.
Methods inherited from Response
Constructor Details
#initialize(success, message, params = {}, options = {}) ⇒ StampsAccountInfoResponse
Returns a new instance of StampsAccountInfoResponse.
771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 |
# File 'lib/active_shipping/carriers/stamps.rb', line 771 def initialize(success, , params = {}, = {}) super @customer_id = [:customer_id] @meter_number = [:meter_number] @user_id = [:user_id] @available_postage = [:available_postage] @control_total = [:control_total] @max_postage_balance = [:max_postage_balance] @lpo = Location.new( city: [:lpo_city], state: [:lpo_state], zip: [:lpo_zip] ) @can_print_shipping = [:can_print_shipping] @can_use_cost_codes = [:can_use_cost_codes] @can_use_hidden_postage = [:can_use_hidden_postage] @can_purchase_sdc_insurance = [:can_purchase_sdc_insurance] @can_print_memo = [:can_print_memo] @can_print_international = [:can_print_international] @can_purchase_postage = [:can_purchase_postage] @can_edit_cost_codes = [:can_edit_cost_codes] @must_use_cost_codes = [:must_use_cost_codes] @can_view_online_reports = [:can_view_online_reports] @per_print_limit = [:per_print_limit] end |
Instance Attribute Details
#available_postage ⇒ Object (readonly)
Returns the value of attribute available_postage.
756 757 758 |
# File 'lib/active_shipping/carriers/stamps.rb', line 756 def available_postage @available_postage end |
#can_edit_cost_codes ⇒ Object (readonly) Also known as: can_edit_cost_codes?
Returns the value of attribute can_edit_cost_codes.
758 759 760 |
# File 'lib/active_shipping/carriers/stamps.rb', line 758 def can_edit_cost_codes @can_edit_cost_codes end |
#can_print_international ⇒ Object (readonly) Also known as: can_print_international?
Returns the value of attribute can_print_international.
757 758 759 |
# File 'lib/active_shipping/carriers/stamps.rb', line 757 def can_print_international @can_print_international end |
#can_print_memo ⇒ Object (readonly) Also known as: can_print_memo?
Returns the value of attribute can_print_memo.
758 759 760 |
# File 'lib/active_shipping/carriers/stamps.rb', line 758 def can_print_memo @can_print_memo end |
#can_print_shipping ⇒ Object (readonly) Also known as: can_print_shipping?
Returns the value of attribute can_print_shipping.
757 758 759 |
# File 'lib/active_shipping/carriers/stamps.rb', line 757 def can_print_shipping @can_print_shipping end |
#can_purchase_postage ⇒ Object (readonly) Also known as: can_purchase_postage?
Returns the value of attribute can_purchase_postage.
758 759 760 |
# File 'lib/active_shipping/carriers/stamps.rb', line 758 def can_purchase_postage @can_purchase_postage end |
#can_purchase_sdc_insurance ⇒ Object (readonly) Also known as: can_purchase_sdc_insurance?
Returns the value of attribute can_purchase_sdc_insurance.
757 758 759 |
# File 'lib/active_shipping/carriers/stamps.rb', line 757 def can_purchase_sdc_insurance @can_purchase_sdc_insurance end |
#can_use_cost_codes ⇒ Object (readonly) Also known as: can_use_cost_codes?
Returns the value of attribute can_use_cost_codes.
757 758 759 |
# File 'lib/active_shipping/carriers/stamps.rb', line 757 def can_use_cost_codes @can_use_cost_codes end |
#can_use_hidden_postage ⇒ Object (readonly) Also known as:
Returns the value of attribute can_use_hidden_postage.
757 758 759 |
# File 'lib/active_shipping/carriers/stamps.rb', line 757 def can_use_hidden_postage @can_use_hidden_postage end |
#can_view_online_reports ⇒ Object (readonly) Also known as: can_view_online_reports?
Returns the value of attribute can_view_online_reports.
758 759 760 |
# File 'lib/active_shipping/carriers/stamps.rb', line 758 def can_view_online_reports @can_view_online_reports end |
#control_total ⇒ Object (readonly)
Returns the value of attribute control_total.
756 757 758 |
# File 'lib/active_shipping/carriers/stamps.rb', line 756 def control_total @control_total end |
#customer_id ⇒ Object (readonly)
Returns the value of attribute customer_id.
756 757 758 |
# File 'lib/active_shipping/carriers/stamps.rb', line 756 def customer_id @customer_id end |
#lpo ⇒ Object (readonly)
Returns the value of attribute lpo.
756 757 758 |
# File 'lib/active_shipping/carriers/stamps.rb', line 756 def lpo @lpo end |
#max_postage_balance ⇒ Object (readonly)
Returns the value of attribute max_postage_balance.
756 757 758 |
# File 'lib/active_shipping/carriers/stamps.rb', line 756 def max_postage_balance @max_postage_balance end |
#meter_number ⇒ Object (readonly)
Returns the value of attribute meter_number.
756 757 758 |
# File 'lib/active_shipping/carriers/stamps.rb', line 756 def meter_number @meter_number end |
#must_use_cost_codes ⇒ Object (readonly) Also known as: must_use_cost_codes?
Returns the value of attribute must_use_cost_codes.
758 759 760 |
# File 'lib/active_shipping/carriers/stamps.rb', line 758 def must_use_cost_codes @must_use_cost_codes end |
#per_print_limit ⇒ Object (readonly)
Returns the value of attribute per_print_limit.
758 759 760 |
# File 'lib/active_shipping/carriers/stamps.rb', line 758 def per_print_limit @per_print_limit end |
#user_id ⇒ Object (readonly)
Returns the value of attribute user_id.
756 757 758 |
# File 'lib/active_shipping/carriers/stamps.rb', line 756 def user_id @user_id end |