Class: Softlayer::Locale::Timezone

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

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Locale_Timezone'

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

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/softlayer/locale/timezone.rb', line 5

def id
  @id
end

#long_nameObject

Returns the value of attribute long_name.



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

def long_name
  @long_name
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#offsetObject

Returns the value of attribute offset.



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

def offset
  @offset
end

#short_nameObject

Returns the value of attribute short_name.



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

def short_name
  @short_name
end

Class Method Details

.get_all_objectsObject



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

def self.get_all_objects
  request(:get_all_objects, Array[Softlayer::Locale::Timezone])
end

Instance Method Details

#get_objectObject



15
16
17
# File 'lib/softlayer/locale/timezone.rb', line 15

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