Class: Pione::Location::LocationScheme

Inherits:
URI::Generic show all
Defined in:
lib/pione/location/location-scheme.rb

Overview

LocationScheme is a URI scheme for Location.

Instance Method Summary collapse

Methods inherited from URI::Generic

#as_directory, #directory?, #file?

Instance Method Details

#pione?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns true always because classes inheriting BasicScheme are supported by PIONE system.

Returns:

  • (Boolean)


8
9
10
# File 'lib/pione/location/location-scheme.rb', line 8

def pione?
  true
end

#storage?Boolean

Returns true if the scheme acts as storage.

Returns:

  • (Boolean)

    true if the scheme acts as storage



15
16
17
# File 'lib/pione/location/location-scheme.rb', line 15

def storage?
  self.class.instance_variable_get(:@storage)
end