Module: Decoder::CommonMethods

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

Instance Method Summary collapse

Instance Method Details

#inspectObject



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

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

#to_sObject



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

def to_s
  name
end