Class: Twb::JoinTablePair

Inherits:
Object
  • Object
show all
Defined in:
lib/twb/datasource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(from, to) ⇒ JoinTablePair

Returns a new instance of JoinTablePair.

Raises:

  • (ParamaterException)


563
564
565
566
567
568
# File 'lib/twb/datasource.rb', line 563

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

#fromObject (readonly)

Returns the value of attribute from.



562
563
564
# File 'lib/twb/datasource.rb', line 562

def from
  @from
end

#toObject (readonly)

Returns the value of attribute to.



562
563
564
# File 'lib/twb/datasource.rb', line 562

def to
  @to
end

Instance Method Details

#to_sObject



569
570
571
# File 'lib/twb/datasource.rb', line 569

def to_s
  "#{@from} -> #{@to}"
end