Class: Twb::Util::JoinTablePair
- Inherits:
-
Object
- Object
- Twb::Util::JoinTablePair
- Defined in:
- lib/twb/util/joinutilities.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(from, to) ⇒ JoinTablePair
constructor
A new instance of JoinTablePair.
Constructor Details
#initialize(from, to) ⇒ JoinTablePair
Returns a new instance of JoinTablePair.
30 31 32 33 34 35 |
# File 'lib/twb/util/joinutilities.rb', line 30 def initialize(from, to) raise ParamaterException.new("'From' cannot be nil.") if from.nil? raise ParamaterException.new("'To' cannot be nil.") if to.nil? @from = from @to = to end |
Instance Attribute Details
#from ⇒ Object (readonly)
Returns the value of attribute from.
29 30 31 |
# File 'lib/twb/util/joinutilities.rb', line 29 def from @from end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
29 30 31 |
# File 'lib/twb/util/joinutilities.rb', line 29 def to @to end |