Sha256: 3d1b4bf6e83e31b958b3a5d998a969521d8ed0747ff9518115bffc8ce514d45a
Contents?: true
Size: 790 Bytes
Versions: 1
Compression:
Stored size: 790 Bytes
Contents
module Moceansdk module Modules module NumberLookup class NumberLookup < Moceansdk::Modules::AbstractClient def initialize(obj_auth, transmitter) super(obj_auth, transmitter) @required_fields = ['mocean-api-key', 'mocean-api-secret', 'mocean-to'] end def to=(param) @params['mocean-to'] = param end def nl_url=(param) @params['mocean-nl-url'] = param end def resp_format=(param) @params['mocean-resp-format'] = param end def inquiry(params = {}) create(params) create_final_params required_field_set? @transmitter.post('/nl', @params) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
moceansdk-1.0.0 | lib/moceansdk/modules/number_lookup/number_lookup.rb |