Class: Softlayer::Ticket::Attachment::File

Inherits:
Entity
  • Object
show all
Defined in:
lib/softlayer/ticket/attachment/file.rb

Defined Under Namespace

Classes: Representer

Constant Summary collapse

SERVICE =
'SoftLayer_Ticket_Attachment_File'

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

#create_dateObject

Returns the value of attribute create_date.



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

def create_date
  @create_date
end

#file_nameObject

Returns the value of attribute file_name.



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

def file_name
  @file_name
end

#file_sizeObject

Returns the value of attribute file_size.



8
9
10
# File 'lib/softlayer/ticket/attachment/file.rb', line 8

def file_size
  @file_size
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#modify_dateObject

Returns the value of attribute modify_date.



10
11
12
# File 'lib/softlayer/ticket/attachment/file.rb', line 10

def modify_date
  @modify_date
end

#ticketObject

Returns the value of attribute ticket.



15
16
17
# File 'lib/softlayer/ticket/attachment/file.rb', line 15

def ticket
  @ticket
end

#ticket_idObject

Returns the value of attribute ticket_id.



11
12
13
# File 'lib/softlayer/ticket/attachment/file.rb', line 11

def ticket_id
  @ticket_id
end

#updateObject

Returns the value of attribute update.



16
17
18
# File 'lib/softlayer/ticket/attachment/file.rb', line 16

def update
  @update
end

#update_idObject

Returns the value of attribute update_id.



12
13
14
# File 'lib/softlayer/ticket/attachment/file.rb', line 12

def update_id
  @update_id
end

#uploader_idObject

Returns the value of attribute uploader_id.



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

def uploader_id
  @uploader_id
end

#uploader_typeObject

Returns the value of attribute uploader_type.



14
15
16
# File 'lib/softlayer/ticket/attachment/file.rb', line 14

def uploader_type
  @uploader_type
end

Class Method Details

.get_extension_whitelistObject



18
19
20
# File 'lib/softlayer/ticket/attachment/file.rb', line 18

def self.get_extension_whitelist
  request(:get_extension_whitelist, Array[String])
end

Instance Method Details

#get_objectObject



22
23
24
# File 'lib/softlayer/ticket/attachment/file.rb', line 22

def get_object
  request(:get_object, Softlayer::Ticket::Attachment::File)
end

#get_ticketObject



26
27
28
# File 'lib/softlayer/ticket/attachment/file.rb', line 26

def get_ticket
  request(:get_ticket, Softlayer::Ticket)
end

#get_updateObject



30
31
32
# File 'lib/softlayer/ticket/attachment/file.rb', line 30

def get_update
  request(:get_update, Softlayer::Ticket::Update)
end