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

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

Defined Under Namespace

Classes: Category, Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Billing_Item_Cancellation_Reason'

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_cancel_reason_category_idObject

Returns the value of attribute billing_cancel_reason_category_id.



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

def billing_cancel_reason_category_id
  @billing_cancel_reason_category_id
end

#billing_cancellation_reason_categoryObject

Returns the value of attribute billing_cancellation_reason_category.



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

def billing_cancellation_reason_category
  @billing_cancellation_reason_category
end

#billing_item_countObject

Returns the value of attribute billing_item_count.



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

def billing_item_count
  @billing_item_count
end

#billing_itemsObject

Returns the value of attribute billing_items.



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

def billing_items
  @billing_items
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#key_nameObject

Returns the value of attribute key_name.



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

def key_name
  @key_name
end

#reasonObject

Returns the value of attribute reason.



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

def reason
  @reason
end

#translated_reasonObject

Returns the value of attribute translated_reason.



15
16
17
# File 'lib/softlayer/billing/item/cancellation/reason.rb', line 15

def translated_reason
  @translated_reason
end

Class Method Details

.get_all_cancellation_reasonsObject



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

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

Instance Method Details

#get_billing_cancellation_reason_categoryObject



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

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

#get_billing_itemsObject



25
26
27
# File 'lib/softlayer/billing/item/cancellation/reason.rb', line 25

def get_billing_items
  request(:get_billing_items, Array[Softlayer::Billing::Item])
end

#get_objectObject



29
30
31
# File 'lib/softlayer/billing/item/cancellation/reason.rb', line 29

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

#get_translated_reasonObject



33
34
35
# File 'lib/softlayer/billing/item/cancellation/reason.rb', line 33

def get_translated_reason
  request(:get_translated_reason, String)
end