Class: EsuApi::DirectoryEntry
- Inherits:
-
Object
- Object
- EsuApi::DirectoryEntry
- Defined in:
- lib/EsuApi.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#filetype ⇒ Object
Returns the value of attribute filetype.
-
#id ⇒ Object
Returns the value of attribute id.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
- #==(other_entry) ⇒ Object
-
#initialize(oid, path, filename, filetype) ⇒ DirectoryEntry
constructor
A new instance of DirectoryEntry.
Constructor Details
#initialize(oid, path, filename, filetype) ⇒ DirectoryEntry
Returns a new instance of DirectoryEntry.
1013 1014 1015 1016 1017 1018 |
# File 'lib/EsuApi.rb', line 1013 def initialize( oid, path, filename, filetype ) @id = oid @path = path @filename = filename @filetype = filetype end |
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename.
1024 1025 1026 |
# File 'lib/EsuApi.rb', line 1024 def filename @filename end |
#filetype ⇒ Object
Returns the value of attribute filetype.
1024 1025 1026 |
# File 'lib/EsuApi.rb', line 1024 def filetype @filetype end |
#id ⇒ Object
Returns the value of attribute id.
1024 1025 1026 |
# File 'lib/EsuApi.rb', line 1024 def id @id end |
#path ⇒ Object
Returns the value of attribute path.
1024 1025 1026 |
# File 'lib/EsuApi.rb', line 1024 def path @path end |
Instance Method Details
#==(other_entry) ⇒ Object
1020 1021 1022 |
# File 'lib/EsuApi.rb', line 1020 def ==(other_entry) return @path == other_entry.path end |