Class: Softlayer::Locale

Inherits:
Entity show all
Defined in:
lib/softlayer/locale.rb,
lib/softlayer/locale/country.rb,
lib/softlayer/locale/timezone.rb,
lib/softlayer/locale/state_province.rb

Defined Under Namespace

Classes: Country, Representer, StateProvince, Timezone

Constant Summary collapse

SERVICE =
'SoftLayer_Locale'

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

all, all_request_for, create, find, #init_headers, parse, process_message, #request, request, service_name, #service_name, #to_hash, #to_softlayer

Methods included from Model::Operations

extended, #filter, included, #limit, #mask, #request_headers

Instance Attribute Details

#friendly_nameObject

Returns the value of attribute friendly_name.



7
8
9
# File 'lib/softlayer/locale.rb', line 7

def friendly_name
  @friendly_name
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/softlayer/locale.rb', line 8

def id
  @id
end

#language_tagObject

Returns the value of attribute language_tag.



9
10
11
# File 'lib/softlayer/locale.rb', line 9

def language_tag
  @language_tag
end

#nameObject

Returns the value of attribute name.



10
11
12
# File 'lib/softlayer/locale.rb', line 10

def name
  @name
end

Class Method Details

.get_closest_to_language_tag(message) ⇒ Object

language_tag



13
14
15
# File 'lib/softlayer/locale.rb', line 13

def self.get_closest_to_language_tag(message)
  request(:get_closest_to_language_tag, Softlayer::Locale, message)
end

Instance Method Details

#get_objectObject



17
18
19
# File 'lib/softlayer/locale.rb', line 17

def get_object
  request(:get_object, Softlayer::Locale)
end