Class: Paapi::Locale

Inherits:
Struct
  • Object
show all
Defined in:
lib/paapi.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hostObject

Returns the value of attribute host



37
38
39
# File 'lib/paapi.rb', line 37

def host
  @host
end

#keyObject

Returns the value of attribute key



37
38
39
# File 'lib/paapi.rb', line 37

def key
  @key
end

#nameObject

Returns the value of attribute name



37
38
39
# File 'lib/paapi.rb', line 37

def name
  @name
end

#regionObject

Returns the value of attribute region



37
38
39
# File 'lib/paapi.rb', line 37

def region
  @region
end

Instance Method Details

#siteObject



38
39
40
# File 'lib/paapi.rb', line 38

def site
  host.sub('webservices', 'www')
end