Class: CardConnect::Service::Profile

Inherits:
ServiceEndpoint show all
Defined in:
lib/cardconnect/services/profile/profile.rb

Instance Attribute Summary

Attributes inherited from ServiceEndpoint

#connection, #request, #resource_name, #response, #rest_method

Instance Method Summary collapse

Methods inherited from ServiceEndpoint

#build_request, #path, #submit

Methods included from Utils

#set_attributes, #symbolize_keys

Constructor Details

#initialize(rest_method, connection = CardConnect.connection) ⇒ Object

Initializes an Profile(create/update) Service



8
9
10
11
12
# File 'lib/cardconnect/services/profile/profile.rb', line 8

def initialize(rest_method, connection = CardConnect.connection)
  super(connection)
  @resource_name = '/profile'
  @rest_method = rest_method
end