Class: SmqlToAR::QueryBuilder::Vid

Inherits:
Object
  • Object
show all
Defined in:
lib/smql_to_ar/query_builder.rb

Overview

Erzeugt einen eindeutigen Identikator “cX”, wobei X iteriert wird.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#vidObject (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_iObject



28
# File 'lib/smql_to_ar/query_builder.rb', line 28

def to_i()  @vid  end

#to_sObject



25
# File 'lib/smql_to_ar/query_builder.rb', line 25

def to_s() ":smql_c#{@vid}" end

#to_symObject Also known as: sym



26
# File 'lib/smql_to_ar/query_builder.rb', line 26

def to_sym() "smql_c#{@vid}".to_sym end