Class: Nurego::Registration

Inherits:
APIResource show all
Includes:
APIOperations::Create, APIOperations::List
Defined in:
lib/nurego/registration.rb

Instance Attribute Summary

Attributes inherited from NuregoObject

#api_key

Instance Method Summary collapse

Methods included from APIOperations::List

included

Methods included from APIOperations::Create

included

Methods inherited from APIResource

class_name, #refresh, retrieve, url, #url

Methods inherited from NuregoObject

#[], #[]=, #as_json, construct_from, #each, #initialize, #inspect, #keys, #refresh_from, #to_hash, #to_json, #to_s, #values

Constructor Details

This class inherits a constructor from Nurego::NuregoObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Nurego::NuregoObject

Instance Method Details

#complete(params) ⇒ Object



6
7
8
9
10
# File 'lib/nurego/registration.rb', line 6

def complete(params)
  response, api_key = Nurego.request(:post, complete_url, @api_key, params)
  refresh_from({customer: response}, api_key, true)
  customer
end