Class: UncleKryon::UsaState
- Defined in:
- lib/unclekryon/iso/usa_state.rb
Instance Attribute Summary
Attributes inherited from BaseIso
Attributes inherited from BaseData
Instance Method Summary collapse
-
#initialize(row = nil) ⇒ UsaState
constructor
A new instance of UsaState.
Methods inherited from BaseIso
#==, fix_name, flip_word_order, simplify_code, simplify_name, #to_s
Methods inherited from BaseData
#initialize_copy, #max_updated_on, max_updated_on, #max_updated_on_s, max_updated_on_s, #update
Constructor Details
#initialize(row = nil) ⇒ UsaState
Returns a new instance of UsaState.
24 25 26 27 28 29 30 31 |
# File 'lib/unclekryon/iso/usa_state.rb', line 24 def initialize(row=nil) super() if row.is_a?(Array) @name = self.class.simplify_name(row[2]) @code = self.class.simplify_code(row[1]) end end |