Class: KeytechKit::ElementFile

Inherits:
Object
  • Object
show all
Defined in:
lib/keytechKit/elements/element_files/element_file.rb

Overview

A single file representation

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ ElementFile

Returns a new instance of ElementFile.



11
12
13
14
15
16
17
# File 'lib/keytechKit/elements/element_files/element_file.rb', line 11

def initialize(data)
  self.changedAt = data['FileLastChangedAt']
  self.fileSize = data['FileSize']
  self.fileName = data['FileName']
  self.fileId = data['FileID']
  self.fileStorageType = data['FileStorageType']
end

Instance Attribute Details

#changedAtObject

Returns the value of attribute changedAt.



5
6
7
# File 'lib/keytechKit/elements/element_files/element_file.rb', line 5

def changedAt
  @changedAt
end

#fileIdObject

Returns the value of attribute fileId.



9
10
11
# File 'lib/keytechKit/elements/element_files/element_file.rb', line 9

def fileId
  @fileId
end

#fileNameObject

Returns the value of attribute fileName.



6
7
8
# File 'lib/keytechKit/elements/element_files/element_file.rb', line 6

def fileName
  @fileName
end

#fileSizeObject

Returns the value of attribute fileSize.



7
8
9
# File 'lib/keytechKit/elements/element_files/element_file.rb', line 7

def fileSize
  @fileSize
end

#fileStorageTypeObject

Returns the value of attribute fileStorageType.



8
9
10
# File 'lib/keytechKit/elements/element_files/element_file.rb', line 8

def fileStorageType
  @fileStorageType
end