Class: SolidusBolt::Accounts::AddPaymentMethodService
- Inherits:
-
BaseService
- Object
- BaseService
- SolidusBolt::Accounts::AddPaymentMethodService
- Defined in:
- app/services/solidus_bolt/accounts/add_payment_method_service.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
readonly
Returns the value of attribute access_token.
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#credit_card ⇒ Object
readonly
Returns the value of attribute credit_card.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(access_token:, credit_card:, address:, email:) ⇒ AddPaymentMethodService
constructor
A new instance of AddPaymentMethodService.
Methods inherited from BaseService
Constructor Details
#initialize(access_token:, credit_card:, address:, email:) ⇒ AddPaymentMethodService
Returns a new instance of AddPaymentMethodService.
8 9 10 11 12 13 14 |
# File 'app/services/solidus_bolt/accounts/add_payment_method_service.rb', line 8 def initialize(access_token:, credit_card:, address:, email:) @access_token = access_token @credit_card = credit_card @address = address @email = email super end |
Instance Attribute Details
#access_token ⇒ Object (readonly)
Returns the value of attribute access_token.
6 7 8 |
# File 'app/services/solidus_bolt/accounts/add_payment_method_service.rb', line 6 def access_token @access_token end |
#address ⇒ Object (readonly)
Returns the value of attribute address.
6 7 8 |
# File 'app/services/solidus_bolt/accounts/add_payment_method_service.rb', line 6 def address @address end |
#credit_card ⇒ Object (readonly)
Returns the value of attribute credit_card.
6 7 8 |
# File 'app/services/solidus_bolt/accounts/add_payment_method_service.rb', line 6 def credit_card @credit_card end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
6 7 8 |
# File 'app/services/solidus_bolt/accounts/add_payment_method_service.rb', line 6 def email @email end |
Instance Method Details
#call ⇒ Object
16 17 18 |
# File 'app/services/solidus_bolt/accounts/add_payment_method_service.rb', line 16 def call add_payment_method end |