Class: Sort::ScriptSortBuilder::ScriptSortTypes

Inherits:
Object
  • Object
show all
Defined in:
lib/sort/script_sort_builder.rb

Constant Summary collapse

SCRIPT_SORT_TYPES =
{number: "number", string: "string"}

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(script_type) ⇒ ScriptSortTypes

Returns a new instance of ScriptSortTypes.



76
77
78
# File 'lib/sort/script_sort_builder.rb', line 76

def initialize script_type
  @script_sort_type = script_type
end

Instance Attribute Details

#script_sort_typeObject (readonly)

Returns the value of attribute script_sort_type.



68
69
70
# File 'lib/sort/script_sort_builder.rb', line 68

def script_sort_type
  @script_sort_type
end