Class: Paapi::Locale
- Inherits:
-
Struct
- Object
- Struct
- Paapi::Locale
- Defined in:
- lib/paapi.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#key ⇒ Object
Returns the value of attribute key.
-
#name ⇒ Object
Returns the value of attribute name.
-
#region ⇒ Object
Returns the value of attribute region.
Instance Method Summary collapse
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host
38 39 40 |
# File 'lib/paapi.rb', line 38 def host @host end |
#key ⇒ Object
Returns the value of attribute key
38 39 40 |
# File 'lib/paapi.rb', line 38 def key @key end |
#name ⇒ Object
Returns the value of attribute name
38 39 40 |
# File 'lib/paapi.rb', line 38 def name @name end |
#region ⇒ Object
Returns the value of attribute region
38 39 40 |
# File 'lib/paapi.rb', line 38 def region @region end |
Instance Method Details
#site ⇒ Object
39 40 41 |
# File 'lib/paapi.rb', line 39 def site host.sub("webservices", "www") end |