Class: EsuApi::DirectoryEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/EsuApi.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#filenameObject

Returns the value of attribute filename.



1024
1025
1026
# File 'lib/EsuApi.rb', line 1024

def filename
  @filename
end

#filetypeObject

Returns the value of attribute filetype.



1024
1025
1026
# File 'lib/EsuApi.rb', line 1024

def filetype
  @filetype
end

#idObject

Returns the value of attribute id.



1024
1025
1026
# File 'lib/EsuApi.rb', line 1024

def id
  @id
end

#pathObject

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