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) ⇒ Object
Constructor Details
#initialize(client) ⇒ EmailVerifications
Returns a new instance of EmailVerifications.
6785 6786 6787 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6785 def initialize(client) @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client) end |
Instance Method Details
#post_by_token(token) ⇒ Object
6789 6790 6791 6792 6793 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6789 def post_by_token(token) HttpClient::Preconditions.assert_class('token', token, String) r = @client.request("/users/emails/verifications/#{CGI.escape(token)}").post ::Io::Flow::V0::Models::EmailVerification.new(r) end |