Class: Stockboy::Attribute
- Inherits:
-
Struct
- Object
- Struct
- Stockboy::Attribute
- Defined in:
- lib/stockboy/attribute.rb
Overview
Struct-like value object for holding mapping & translation details from input data fields
Instance Attribute Summary collapse
-
#from ⇒ Object
Returns the value of attribute from.
-
#to ⇒ Object
Returns the value of attribute to.
-
#translators ⇒ Object
Returns the value of attribute translators.
Instance Method Summary collapse
Instance Attribute Details
#from ⇒ Object
Returns the value of attribute from
6 7 8 |
# File 'lib/stockboy/attribute.rb', line 6 def from @from end |
#to ⇒ Object
Returns the value of attribute to
6 7 8 |
# File 'lib/stockboy/attribute.rb', line 6 def to @to end |
#translators ⇒ Object
Returns the value of attribute translators
6 7 8 |
# File 'lib/stockboy/attribute.rb', line 6 def translators @translators end |
Instance Method Details
#inspect ⇒ Object
7 8 9 |
# File 'lib/stockboy/attribute.rb', line 7 def inspect "#<Stockboy::Attribute to=#{to.inspect}, from=#{from.inspect}, translators=#{translators}>" end |