Class: ErpIntegration::Webhook
- 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
-
#active ⇒ Object
Returns the value of attribute active.
-
#attachments ⇒ Object
Returns the value of attribute attachments.
-
#create_date ⇒ Object
Returns the value of attribute create_date.
-
#create_uid ⇒ Object
Returns the value of attribute create_uid.
-
#event ⇒ Object
Returns the value of attribute event.
-
#id ⇒ Object
Returns the value of attribute id.
-
#messages ⇒ Object
Returns the value of attribute messages.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#metafields ⇒ Object
Returns the value of attribute metafields.
-
#private_notes ⇒ Object
Returns the value of attribute private_notes.
-
#public_notes ⇒ Object
Returns the value of attribute public_notes.
-
#rec_blurb ⇒ Object
Returns the value of attribute rec_blurb.
-
#rec_name ⇒ Object
Returns the value of attribute rec_name.
-
#recent_deliveries ⇒ Object
Returns the value of attribute recent_deliveries.
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#url ⇒ Object
Returns the value of attribute url.
-
#write_date ⇒ Object
Returns the value of attribute write_date.
-
#write_uid ⇒ Object
Returns the value of attribute write_uid.
Attributes inherited from Resource
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
#active ⇒ Object
Returns the value of attribute active.
7 8 9 |
# File 'lib/erp_integration/webhook.rb', line 7 def active @active end |
#attachments ⇒ Object
Returns the value of attribute attachments.
7 8 9 |
# File 'lib/erp_integration/webhook.rb', line 7 def @attachments end |
#create_date ⇒ Object
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_uid ⇒ Object
Returns the value of attribute create_uid.
7 8 9 |
# File 'lib/erp_integration/webhook.rb', line 7 def create_uid @create_uid end |
#event ⇒ Object
Returns the value of attribute event.
7 8 9 |
# File 'lib/erp_integration/webhook.rb', line 7 def event @event end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/erp_integration/webhook.rb', line 7 def id @id end |
#messages ⇒ Object
Returns the value of attribute messages.
7 8 9 |
# File 'lib/erp_integration/webhook.rb', line 7 def @messages end |
#metadata ⇒ Object
Returns the value of attribute metadata.
7 8 9 |
# File 'lib/erp_integration/webhook.rb', line 7 def @metadata end |
#metafields ⇒ Object
Returns the value of attribute metafields.
7 8 9 |
# File 'lib/erp_integration/webhook.rb', line 7 def @metafields end |
#private_notes ⇒ Object
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_notes ⇒ Object
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_blurb ⇒ Object
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_name ⇒ Object
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_deliveries ⇒ Object
Returns the value of attribute recent_deliveries.
7 8 9 |
# File 'lib/erp_integration/webhook.rb', line 7 def recent_deliveries @recent_deliveries end |
#secret ⇒ Object
Returns the value of attribute secret.
7 8 9 |
# File 'lib/erp_integration/webhook.rb', line 7 def secret @secret end |
#url ⇒ Object
Returns the value of attribute url.
7 8 9 |
# File 'lib/erp_integration/webhook.rb', line 7 def url @url end |
#write_date ⇒ Object
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_uid ⇒ Object
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 |