Class: Samvera::Derivatives::Configuration::RegisteredType

Inherits:
Struct
  • Object
show all
Defined in:
lib/samvera/derivatives/configuration.rb

Overview

TODO: Consider the appropriate extension

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#applicabilityObject

Returns the value of attribute applicability

Returns:

  • (Object)

    the current value of applicability



30
31
32
# File 'lib/samvera/derivatives/configuration.rb', line 30

def applicability
  @applicability
end

#applicatorsObject

Returns the value of attribute applicators

Returns:

  • (Object)

    the current value of applicators



30
31
32
# File 'lib/samvera/derivatives/configuration.rb', line 30

def applicators
  @applicators
end

#locatorsObject

Returns the value of attribute locators

Returns:

  • (Object)

    the current value of locators



30
31
32
# File 'lib/samvera/derivatives/configuration.rb', line 30

def locators
  @locators
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



30
31
32
# File 'lib/samvera/derivatives/configuration.rb', line 30

def type
  @type
end

Instance Method Details

#applicable_for?(file_set:) ⇒ Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/samvera/derivatives/configuration.rb', line 31

def applicable_for?(file_set:)
  applicability.call(file_set)
end