Class: CSVDecision::Columns::Entry Private

Inherits:
Struct
  • Object
show all
Defined in:
lib/csv_decision/columns.rb

Overview

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

Value object to hold column dictionary entries.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#evalObject

Returns the value of attribute eval

Returns:

  • (Object)

    the current value of eval



12
13
14
# File 'lib/csv_decision/columns.rb', line 12

def eval
  @eval
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



12
13
14
# File 'lib/csv_decision/columns.rb', line 12

def name
  @name
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



12
13
14
# File 'lib/csv_decision/columns.rb', line 12

def type
  @type
end

Instance Method Details

#ins?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:

  • (Boolean)


13
14
15
# File 'lib/csv_decision/columns.rb', line 13

def ins?
  %i[in guard].member?(type) ? true : false
end