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



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

def host
  @host
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



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

def key
  @key
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



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

def name
  @name
end

#regionObject

Returns the value of attribute region

Returns:

  • (Object)

    the current value of region



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

def region
  @region
end

Instance Method Details

#siteObject



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

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