Class: KeytechKit::ElementFile
- Inherits:
-
Object
- Object
- KeytechKit::ElementFile
- Defined in:
- lib/keytechKit/elements/element_files/element_file.rb
Overview
A single file representation
Instance Attribute Summary collapse
-
#changedAt ⇒ Object
Returns the value of attribute changedAt.
-
#fileId ⇒ Object
Returns the value of attribute fileId.
-
#fileName ⇒ Object
Returns the value of attribute fileName.
-
#fileSize ⇒ Object
Returns the value of attribute fileSize.
-
#fileStorageType ⇒ Object
Returns the value of attribute fileStorageType.
Instance Method Summary collapse
-
#initialize(data) ⇒ ElementFile
constructor
A new instance of ElementFile.
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
#changedAt ⇒ Object
Returns the value of attribute changedAt.
5 6 7 |
# File 'lib/keytechKit/elements/element_files/element_file.rb', line 5 def changedAt @changedAt end |
#fileId ⇒ Object
Returns the value of attribute fileId.
9 10 11 |
# File 'lib/keytechKit/elements/element_files/element_file.rb', line 9 def fileId @fileId end |
#fileName ⇒ Object
Returns the value of attribute fileName.
6 7 8 |
# File 'lib/keytechKit/elements/element_files/element_file.rb', line 6 def fileName @fileName end |
#fileSize ⇒ Object
Returns the value of attribute fileSize.
7 8 9 |
# File 'lib/keytechKit/elements/element_files/element_file.rb', line 7 def fileSize @fileSize end |
#fileStorageType ⇒ Object
Returns the value of attribute fileStorageType.
8 9 10 |
# File 'lib/keytechKit/elements/element_files/element_file.rb', line 8 def fileStorageType @fileStorageType end |