Class: Softlayer::Billing::Item::Cancellation::Reason::Category

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/billing/item/cancellation/reason/category.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Billing_Item_Cancellation_Reason_Category'

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

#billing_cancellation_reason_countObject

Returns the value of attribute billing_cancellation_reason_count.



10
11
12
# File 'lib/softlayer/billing/item/cancellation/reason/category.rb', line 10

def billing_cancellation_reason_count
  @billing_cancellation_reason_count
end

#billing_cancellation_reasonsObject

Returns the value of attribute billing_cancellation_reasons.



11
12
13
# File 'lib/softlayer/billing/item/cancellation/reason/category.rb', line 11

def billing_cancellation_reasons
  @billing_cancellation_reasons
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/softlayer/billing/item/cancellation/reason/category.rb', line 8

def id
  @id
end

#nameObject

Returns the value of attribute name.



9
10
11
# File 'lib/softlayer/billing/item/cancellation/reason/category.rb', line 9

def name
  @name
end

Class Method Details

.get_all_cancellation_reason_categoriesObject



13
14
15
# File 'lib/softlayer/billing/item/cancellation/reason/category.rb', line 13

def self.get_all_cancellation_reason_categories
  request(:get_all_cancellation_reason_categories, Array[Softlayer::Billing::Item::Cancellation::Reason::Category])
end

Instance Method Details

#get_billing_cancellation_reasonsObject



17
18
19
# File 'lib/softlayer/billing/item/cancellation/reason/category.rb', line 17

def get_billing_cancellation_reasons
  request(:get_billing_cancellation_reasons, Array[Softlayer::Billing::Item::Cancellation::Reason])
end

#get_objectObject



21
22
23
# File 'lib/softlayer/billing/item/cancellation/reason/category.rb', line 21

def get_object
  request(:get_object, Softlayer::Billing::Item::Cancellation::Reason::Category)
end