Class: ApiTwister::CodeTable
- Inherits:
-
Object
- Object
- ApiTwister::CodeTable
- Defined in:
- lib/api-twister/code_table.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#table_name ⇒ Object
Returns the value of attribute table_name.
Instance Method Summary collapse
- #code_values ⇒ Object
-
#initialize(name, table_name, order_by = nil) ⇒ CodeTable
constructor
A new instance of CodeTable.
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
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/api-twister/code_table.rb', line 3 def name @name end |
#table_name ⇒ Object
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_values ⇒ Object
11 12 13 |
# File 'lib/api-twister/code_table.rb', line 11 def code_values @code_values ||= load_code_values end |