Class: Opennorth::Represent::PostalCodes

Inherits:
Fog::Collection
  • Object
show all
Defined in:
lib/opennorth/represent/models/postal_codes.rb

Instance Method Summary collapse

Instance Method Details

#get(postal_code) ⇒ Object



8
9
10
# File 'lib/opennorth/represent/models/postal_codes.rb', line 8

def get(postal_code)
  new.merge_attributes(service.get_postal_code(postal_code).body)
end