Module: CommonMethods

Included in:
Decoder::Country, Decoder::State
Defined in:
lib/common_methods.rb

Instance Method Summary collapse

Instance Method Details

#inspectObject



6
7
8
# File 'lib/common_methods.rb', line 6

def inspect
  %{#<#{self.class} code: #{code}, name: #{name}>}
end

#to_sObject



2
3
4
# File 'lib/common_methods.rb', line 2

def to_s
  name
end