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

Returns:

  • (Object)

    the current value of host



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

def host
  @host
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



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

def key
  @key
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



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

def name
  @name
end

#regionObject

Returns the value of attribute region

Returns:

  • (Object)

    the current value of 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