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
4102 4103 4104 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4102 def initialize(client) @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client) end |
Instance Method Details
#post_by_token(token) ⇒ Object
4106 4107 4108 4109 4110 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 4106 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 |