Class: Io::Flow::V0::Clients::EmailVerifications
- Inherits:
-
Object
- Object
- Io::Flow::V0::Clients::EmailVerifications
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Method Summary collapse
-
#initialize(client) ⇒ EmailVerifications
constructor
A new instance of EmailVerifications.
- #post_by_token(token, hash) ⇒ Object
Constructor Details
#initialize(client) ⇒ EmailVerifications
3600 3601 3602 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 3600 def initialize(client) @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client) end |
Instance Method Details
#post_by_token(token, hash) ⇒ Object
3604 3605 3606 3607 3608 3609 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 3604 def post_by_token(token, hash) HttpClient::Preconditions.assert_class('token', token, String) HttpClient::Preconditions.assert_class('hash', hash, Hash) r = @client.request("/users/emails/verifications/#{CGI.escape(token)}").with_json(hash.to_json).post ::Io::Flow::V0::Models::EmailVerification.new(r) end |