Class: SolidusAfterpay::UserAgentGenerator
- Inherits:
-
Object
- Object
- SolidusAfterpay::UserAgentGenerator
- Defined in:
- app/models/solidus_afterpay/user_agent_generator.rb
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(merchant_id:) ⇒ UserAgentGenerator
constructor
A new instance of UserAgentGenerator.
Constructor Details
#initialize(merchant_id:) ⇒ UserAgentGenerator
Returns a new instance of UserAgentGenerator.
5 6 7 |
# File 'app/models/solidus_afterpay/user_agent_generator.rb', line 5 def initialize(merchant_id:) @merchant_id = merchant_id end |
Instance Method Details
#generate ⇒ Object
9 10 11 |
# File 'app/models/solidus_afterpay/user_agent_generator.rb', line 9 def generate "#{afterpay_plugin} (#{platform}; #{system_information}; #{merchant_id}) #{merchant_website_url}" end |