Class: ApiTwister::CodeTable

Inherits:
Object
  • Object
show all
Defined in:
lib/api-twister/code_table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, table_name, order_by = nil) ⇒ CodeTable

Returns a new instance of CodeTable.



5
6
7
8
9
# File 'lib/api-twister/code_table.rb', line 5

def initialize(name, table_name, order_by=nil)
  @name = name
  @table_name = table_name
  @order_by = order_by
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/api-twister/code_table.rb', line 3

def name
  @name
end

#table_nameObject

Returns the value of attribute table_name.



3
4
5
# File 'lib/api-twister/code_table.rb', line 3

def table_name
  @table_name
end

Instance Method Details

#code_valuesObject



11
12
13
# File 'lib/api-twister/code_table.rb', line 11

def code_values
  @code_values ||= load_code_values
end