Class: Postcodes::Postcode

Inherits:
Base
  • Object
show all
Defined in:
lib/postcodes_io/postcode.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#method_missing

Constructor Details

#initialize(info) ⇒ Postcode

Returns a new instance of Postcode.



8
9
10
# File 'lib/postcodes_io/postcode.rb', line 8

def initialize(info)
  @info = info
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Postcodes::Base

Instance Attribute Details

#infoObject (readonly)

Returns the value of attribute info.



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

def info
  @info
end