Class: Rapa::Url

Inherits:
Object
  • Object
show all
Defined in:
lib/rapa/url.rb

Instance Method Summary collapse

Constructor Details

#initialize(domain:) ⇒ Url

Returns a new instance of Url.

Parameters:

  • domain (String)


4
5
6
# File 'lib/rapa/url.rb', line 4

def initialize(domain:)
  @domain = domain
end

Instance Method Details

#to_sObject

Note:

Override



9
10
11
# File 'lib/rapa/url.rb', line 9

def to_s
  "http://webservices.amazon.#{domain}/onca/xml"
end