Class: ActiveMerchant::Billing::ConvenienceStore
- Inherits:
-
Model
- Object
- Model
- ActiveMerchant::Billing::ConvenienceStore
- Defined in:
- lib/active_merchant/billing/convenience_store.rb
Defined Under Namespace
Modules: Code
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(code:, full_name_kana:, phone_number:) ⇒ ConvenienceStore
constructor
A new instance of ConvenienceStore.
- #name ⇒ Object
- #phone_number ⇒ Object
- #validate ⇒ Object
Constructor Details
#initialize(code:, full_name_kana:, phone_number:) ⇒ ConvenienceStore
Returns a new instance of ConvenienceStore.
14 15 16 17 18 |
# File 'lib/active_merchant/billing/convenience_store.rb', line 14 def initialize(code:, full_name_kana:, phone_number:) @code = code @full_name_kana = full_name_kana @phone_number = phone_number end |
Instance Method Details
#code ⇒ Object
20 21 22 |
# File 'lib/active_merchant/billing/convenience_store.rb', line 20 def code @code end |
#name ⇒ Object
24 25 26 |
# File 'lib/active_merchant/billing/convenience_store.rb', line 24 def name @full_name_kana end |
#phone_number ⇒ Object
28 29 30 |
# File 'lib/active_merchant/billing/convenience_store.rb', line 28 def phone_number @phone_number end |
#validate ⇒ Object
32 33 34 |
# File 'lib/active_merchant/billing/convenience_store.rb', line 32 def validate errors_hash(validate_essential_attributes) end |