Class: Softlayer::Locale::Country
- Defined in:
- lib/softlayer/locale/country.rb
Defined Under Namespace
Classes: Representer
Constant Summary collapse
- SERVICE =
'SoftLayer_Locale_Country'
Instance Attribute Summary collapse
-
#is_european_union_flag ⇒ Object
Returns the value of attribute is_european_union_flag.
-
#long_name ⇒ Object
Returns the value of attribute long_name.
-
#short_name ⇒ Object
Returns the value of attribute short_name.
-
#state_count ⇒ Object
Returns the value of attribute state_count.
-
#states ⇒ Object
Returns the value of attribute states.
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
#is_european_union_flag ⇒ Object
Returns the value of attribute is_european_union_flag.
5 6 7 |
# File 'lib/softlayer/locale/country.rb', line 5 def is_european_union_flag @is_european_union_flag end |
#long_name ⇒ Object
Returns the value of attribute long_name.
6 7 8 |
# File 'lib/softlayer/locale/country.rb', line 6 def long_name @long_name end |
#short_name ⇒ Object
Returns the value of attribute short_name.
7 8 9 |
# File 'lib/softlayer/locale/country.rb', line 7 def short_name @short_name end |
#state_count ⇒ Object
Returns the value of attribute state_count.
8 9 10 |
# File 'lib/softlayer/locale/country.rb', line 8 def state_count @state_count end |
#states ⇒ Object
Returns the value of attribute states.
9 10 11 |
# File 'lib/softlayer/locale/country.rb', line 9 def states @states end |
Class Method Details
Instance Method Details
#get_object ⇒ Object
19 20 21 |
# File 'lib/softlayer/locale/country.rb', line 19 def get_object request(:get_object, Softlayer::Locale::Country) end |
#get_states ⇒ Object
23 24 25 |
# File 'lib/softlayer/locale/country.rb', line 23 def get_states request(:get_states, Array[Softlayer::Locale::StateProvince]) end |