Class: Softlayer::Auxiliary::Shipping::Courier::Type

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/auxiliary/shipping/courier/type.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Auxiliary_Shipping_Courier_Type'

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

#courierObject

Returns the value of attribute courier.



12
13
14
# File 'lib/softlayer/auxiliary/shipping/courier/type.rb', line 12

def courier
  @courier
end

#courier_countObject

Returns the value of attribute courier_count.



11
12
13
# File 'lib/softlayer/auxiliary/shipping/courier/type.rb', line 11

def courier_count
  @courier_count
end

#descriptionObject

Returns the value of attribute description.



7
8
9
# File 'lib/softlayer/auxiliary/shipping/courier/type.rb', line 7

def description
  @description
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/softlayer/auxiliary/shipping/courier/type.rb', line 8

def id
  @id
end

#key_nameObject

Returns the value of attribute key_name.



9
10
11
# File 'lib/softlayer/auxiliary/shipping/courier/type.rb', line 9

def key_name
  @key_name
end

#nameObject

Returns the value of attribute name.



10
11
12
# File 'lib/softlayer/auxiliary/shipping/courier/type.rb', line 10

def name
  @name
end

Class Method Details

.get_type_by_key_name(message) ⇒ Object

key_name



23
24
25
# File 'lib/softlayer/auxiliary/shipping/courier/type.rb', line 23

def self.get_type_by_key_name(message)
  request(:get_type_by_key_name, Softlayer::Auxiliary::Shipping::Courier::Type, message)
end

Instance Method Details

#get_courierObject



14
15
16
# File 'lib/softlayer/auxiliary/shipping/courier/type.rb', line 14

def get_courier
  request(:get_courier, Array[Softlayer::Auxiliary::Shipping::Courier])
end

#get_objectObject



18
19
20
# File 'lib/softlayer/auxiliary/shipping/courier/type.rb', line 18

def get_object
  request(:get_object, Softlayer::Auxiliary::Shipping::Courier::Type)
end