Class: Softlayer::Ticket::Subject

Inherits:
Entity show all
Defined in:
lib/softlayer/ticket/subject.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Ticket_Subject'

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

#groupObject

Returns the value of attribute group.



7
8
9
# File 'lib/softlayer/ticket/subject.rb', line 7

def group
  @group
end

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/softlayer/ticket/subject.rb', line 5

def id
  @id
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/softlayer/ticket/subject.rb', line 6

def name
  @name
end

Class Method Details

.get_all_objectsObject



9
10
11
# File 'lib/softlayer/ticket/subject.rb', line 9

def self.get_all_objects
  request(:get_all_objects, Array[Softlayer::Ticket::Subject])
end

Instance Method Details

#get_groupObject



13
14
15
# File 'lib/softlayer/ticket/subject.rb', line 13

def get_group
  request(:get_group, Softlayer::Ticket::Group)
end

#get_objectObject



17
18
19
# File 'lib/softlayer/ticket/subject.rb', line 17

def get_object
  request(:get_object, Softlayer::Ticket::Subject)
end

#get_top_five_knowledge_layer_questionsObject



21
22
23
# File 'lib/softlayer/ticket/subject.rb', line 21

def get_top_five_knowledge_layer_questions
  request(:get_top_five_knowledge_layer_questions, Array[Softlayer::Container::KnowledgeLayer::QuestionAnswer])
end