Class: Ferret::Selectee

Inherits:
Object
  • Object
show all
Defined in:
lib/sql-ferret.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stage, field, output_name, interpretation, star_p = false) ⇒ Selectee

Returns a new instance of Selectee.



1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
# File 'lib/sql-ferret.rb', line 1636

def initialize stage, field,
    output_name, interpretation,
    star_p = false
  raise 'type mismatch' unless field.is_a? Ferret::Field
  raise 'type mismatch' unless output_name.is_a? String
  super()
  @stage = stage
  @field = field
  @output_name = output_name
  @interpretation = interpretation
  @star_p = star_p
  return
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



1632
1633
1634
# File 'lib/sql-ferret.rb', line 1632

def field
  @field
end

#interpretationObject (readonly)

Returns the value of attribute interpretation.



1634
1635
1636
# File 'lib/sql-ferret.rb', line 1634

def interpretation
  @interpretation
end

#output_nameObject (readonly)

Returns the value of attribute output_name.



1633
1634
1635
# File 'lib/sql-ferret.rb', line 1633

def output_name
  @output_name
end

#stageObject (readonly)

Returns the value of attribute stage.



1631
1632
1633
# File 'lib/sql-ferret.rb', line 1631

def stage
  @stage
end

Instance Method Details

#star?Boolean

Returns:

  • (Boolean)


1650
1651
1652
# File 'lib/sql-ferret.rb', line 1650

def star?
  return @star_p
end