Class: Stockboy::Attribute

Inherits:
Struct
  • Object
show all
Defined in:
lib/stockboy/attribute.rb

Overview

Struct-like value object for holding mapping & translation details from input data fields

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fromObject

Returns the value of attribute from

Returns:

  • (Object)

    the current value of from



6
7
8
# File 'lib/stockboy/attribute.rb', line 6

def from
  @from
end

#toObject

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



6
7
8
# File 'lib/stockboy/attribute.rb', line 6

def to
  @to
end

#translatorsObject

Returns the value of attribute translators

Returns:

  • (Object)

    the current value of translators



6
7
8
# File 'lib/stockboy/attribute.rb', line 6

def translators
  @translators
end

Instance Method Details

#inspectObject



7
8
9
# File 'lib/stockboy/attribute.rb', line 7

def inspect
  "#<Stockboy::Attribute to=#{to.inspect}, from=#{from.inspect}, translators=#{translators}>"
end