Class: Ferret::Selectee
- Inherits:
-
Object
- Object
- Ferret::Selectee
- Defined in:
- lib/sql-ferret.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#interpretation ⇒ Object
readonly
Returns the value of attribute interpretation.
-
#output_name ⇒ Object
readonly
Returns the value of attribute output_name.
-
#stage ⇒ Object
readonly
Returns the value of attribute stage.
Instance Method Summary collapse
-
#initialize(stage, field, output_name, interpretation, star_p = false) ⇒ Selectee
constructor
A new instance of Selectee.
- #star? ⇒ Boolean
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
#field ⇒ Object (readonly)
Returns the value of attribute field.
1632 1633 1634 |
# File 'lib/sql-ferret.rb', line 1632 def field @field end |
#interpretation ⇒ Object (readonly)
Returns the value of attribute interpretation.
1634 1635 1636 |
# File 'lib/sql-ferret.rb', line 1634 def interpretation @interpretation end |
#output_name ⇒ Object (readonly)
Returns the value of attribute output_name.
1633 1634 1635 |
# File 'lib/sql-ferret.rb', line 1633 def output_name @output_name end |
#stage ⇒ Object (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
1650 1651 1652 |
# File 'lib/sql-ferret.rb', line 1650 def star? return @star_p end |