Class: Moceansdk::Modules::Message::VerifyValidate
Instance Attribute Summary
#params
Instance Method Summary
collapse
#create, #create_final_params, #param_prefix_set?, #required_field_set?
Constructor Details
#initialize(obj_auth, transmitter) ⇒ VerifyValidate
Returns a new instance of VerifyValidate.
6
7
8
9
|
# File 'lib/moceansdk/modules/message/verify_validate.rb', line 6
def initialize(obj_auth, transmitter)
super(obj_auth, transmitter)
@required_fields = ['mocean-api-key', 'mocean-api-secret', 'mocean-reqid', 'mocean-code']
end
|
Instance Method Details
#code=(param) ⇒ Object
15
16
17
|
# File 'lib/moceansdk/modules/message/verify_validate.rb', line 15
def code=(param)
@params['mocean-code'] = param
end
|
#reqid=(param) ⇒ Object
11
12
13
|
# File 'lib/moceansdk/modules/message/verify_validate.rb', line 11
def reqid=(param)
@params['mocean-reqid'] = param
end
|
19
20
21
|
# File 'lib/moceansdk/modules/message/verify_validate.rb', line 19
def resp_format=(param)
@params['mocean-resp-format'] = param
end
|
#send(params = {}) ⇒ Object
23
24
25
26
27
28
29
|
# File 'lib/moceansdk/modules/message/verify_validate.rb', line 23
def send(params = {})
create(params)
create_final_params
required_field_set?
@transmitter.post('/verify/check', @params)
end
|