Class: GdsApi::Contactotron

Inherits:
Base
  • Object
show all
Defined in:
lib/gds_api/contactotron.rb

Overview

This adapter’s a bit different from the others as it assumes we know the full URI for a contact and just want to grab its json serialization and convert it to an ostruct.

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#adapter_name, #client, #create_client, #initialize, #url_for_slug

Constructor Details

This class inherits a constructor from GdsApi::Base

Instance Method Details

#contact_for_uri(uri) ⇒ Object



8
9
10
# File 'lib/gds_api/contactotron.rb', line 8

def contact_for_uri(uri)
  get_json(uri)
end