Class: ErpIntegration::Webhook

Inherits:
Resource
  • Object
show all
Defined in:
lib/erp_integration/webhook.rb

Overview

The ‘ErpIntegration::Webhook` exposes an uniformed API for interaction with third-party ERP vendors.

Instance Attribute Summary collapse

Attributes inherited from Resource

#raw_api_response

Class Method Summary collapse

Methods inherited from Resource

adapter, adapter_klass, adapter_path, adapter_type, #assign_attributes, #initialize, #method_missing, resource_name, respond_to_missing?

Methods included from Resources::Persistence

#destroy, included, #persisted?, #update

Methods included from Resources::Validations

#errors, #valid?, #validate_with

Constructor Details

This class inherits a constructor from ErpIntegration::Resource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ErpIntegration::Resource

Instance Attribute Details

#activeObject

Returns the value of attribute active.



7
8
9
# File 'lib/erp_integration/webhook.rb', line 7

def active
  @active
end

#attachmentsObject

Returns the value of attribute attachments.



7
8
9
# File 'lib/erp_integration/webhook.rb', line 7

def attachments
  @attachments
end

#create_dateObject

Returns the value of attribute create_date.



7
8
9
# File 'lib/erp_integration/webhook.rb', line 7

def create_date
  @create_date
end

#create_uidObject

Returns the value of attribute create_uid.



7
8
9
# File 'lib/erp_integration/webhook.rb', line 7

def create_uid
  @create_uid
end

#eventObject

Returns the value of attribute event.



7
8
9
# File 'lib/erp_integration/webhook.rb', line 7

def event
  @event
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/erp_integration/webhook.rb', line 7

def id
  @id
end

#messagesObject

Returns the value of attribute messages.



7
8
9
# File 'lib/erp_integration/webhook.rb', line 7

def messages
  @messages
end

#metadataObject

Returns the value of attribute metadata.



7
8
9
# File 'lib/erp_integration/webhook.rb', line 7

def 
  @metadata
end

#metafieldsObject

Returns the value of attribute metafields.



7
8
9
# File 'lib/erp_integration/webhook.rb', line 7

def metafields
  @metafields
end

#private_notesObject

Returns the value of attribute private_notes.



7
8
9
# File 'lib/erp_integration/webhook.rb', line 7

def private_notes
  @private_notes
end

#public_notesObject

Returns the value of attribute public_notes.



7
8
9
# File 'lib/erp_integration/webhook.rb', line 7

def public_notes
  @public_notes
end

#rec_blurbObject

Returns the value of attribute rec_blurb.



7
8
9
# File 'lib/erp_integration/webhook.rb', line 7

def rec_blurb
  @rec_blurb
end

#rec_nameObject

Returns the value of attribute rec_name.



7
8
9
# File 'lib/erp_integration/webhook.rb', line 7

def rec_name
  @rec_name
end

#recent_deliveriesObject

Returns the value of attribute recent_deliveries.



7
8
9
# File 'lib/erp_integration/webhook.rb', line 7

def recent_deliveries
  @recent_deliveries
end

#secretObject

Returns the value of attribute secret.



7
8
9
# File 'lib/erp_integration/webhook.rb', line 7

def secret
  @secret
end

#urlObject

Returns the value of attribute url.



7
8
9
# File 'lib/erp_integration/webhook.rb', line 7

def url
  @url
end

#write_dateObject

Returns the value of attribute write_date.



7
8
9
# File 'lib/erp_integration/webhook.rb', line 7

def write_date
  @write_date
end

#write_uidObject

Returns the value of attribute write_uid.



7
8
9
# File 'lib/erp_integration/webhook.rb', line 7

def write_uid
  @write_uid
end

Class Method Details

.archive(id) ⇒ Object



13
14
15
# File 'lib/erp_integration/webhook.rb', line 13

def archive(id)
  adapter.archive(id)
end

.restore(id) ⇒ Object



17
18
19
# File 'lib/erp_integration/webhook.rb', line 17

def restore(id)
  adapter.restore(id)
end