Module: Validic::REST::Profile
- Included in:
- Client
- Defined in:
- lib/validic/rest/profile.rb
Instance Method Summary collapse
Instance Method Details
#create_profile(options = {}) ⇒ Object
11 12 13 14 15 |
# File 'lib/validic/rest/profile.rb', line 11 def create_profile( = {}) token = .delete(:authentication_token) resp = post_request(:profile, authentication_token: token, profile: ) Validic::Profile.new(resp['profile']) end |
#get_profile(options = {}) ⇒ Object
6 7 8 9 |
# File 'lib/validic/rest/profile.rb', line 6 def get_profile( = {}) resp = get_request(:profile, ) Validic::Profile.new(resp) end |