Class: SolidusAfterpay::UserAgentGenerator

Inherits:
Object
  • Object
show all
Defined in:
app/models/solidus_afterpay/user_agent_generator.rb

Instance Method Summary collapse

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

#generateObject



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