Class: Twb::JoinTablePair
- Inherits:
-
Object
- Object
- Twb::JoinTablePair
- Defined in:
- lib/twb/datasource.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.
- #to_s ⇒ Object
Constructor Details
#initialize(from, to) ⇒ JoinTablePair
Returns a new instance of JoinTablePair.
594 595 596 597 598 599 |
# File 'lib/twb/datasource.rb', line 594 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.
593 594 595 |
# File 'lib/twb/datasource.rb', line 593 def from @from end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
593 594 595 |
# File 'lib/twb/datasource.rb', line 593 def to @to end |
Instance Method Details
#to_s ⇒ Object
600 601 602 |
# File 'lib/twb/datasource.rb', line 600 def to_s "#{@from} -> #{@to}" end |