Class: SmqlToAR::QueryBuilder::Vid
- Inherits:
-
Object
- Object
- SmqlToAR::QueryBuilder::Vid
- Defined in:
- lib/smql_to_ar/query_builder.rb
Overview
Erzeugt einen eindeutigen Identikator “cX”, wobei X iteriert wird.
Instance Attribute Summary collapse
-
#vid ⇒ Object
readonly
Returns the value of attribute vid.
Instance Method Summary collapse
- #===(other) ⇒ Object
-
#initialize(vid) ⇒ Vid
constructor
A new instance of Vid.
- #to_i ⇒ Object
- #to_s ⇒ Object
- #to_sym ⇒ Object (also: #sym)
Constructor Details
#initialize(vid) ⇒ Vid
Returns a new instance of Vid.
24 |
# File 'lib/smql_to_ar/query_builder.rb', line 24 def initialize( vid) @vid = vid end |
Instance Attribute Details
#vid ⇒ Object (readonly)
Returns the value of attribute vid.
23 24 25 |
# File 'lib/smql_to_ar/query_builder.rb', line 23 def vid @vid end |
Instance Method Details
#===(other) ⇒ Object
29 30 31 |
# File 'lib/smql_to_ar/query_builder.rb', line 29 def === other to_s === other || to_sym === other || to_i === other || self == other || self === other end |
#to_i ⇒ Object
28 |
# File 'lib/smql_to_ar/query_builder.rb', line 28 def to_i() @vid end |
#to_s ⇒ Object
25 |
# File 'lib/smql_to_ar/query_builder.rb', line 25 def to_s() ":smql_c#{@vid}" end |
#to_sym ⇒ Object Also known as: sym
26 |
# File 'lib/smql_to_ar/query_builder.rb', line 26 def to_sym() "smql_c#{@vid}".to_sym end |