Class: EPlat::Webhook
- Defined in:
- lib/e_plat/resource/webhook.rb
Direct Known Subclasses
Bigcommerce::Webhook, Shopify::Webhook, ShopifyWebhook::Webhook
Constant Summary
Constants included from Concerns::GraphQLable
Concerns::GraphQLable::FILTER_ARGS, Concerns::GraphQLable::QUERY_ARG_ARGS
Instance Attribute Summary
Attributes inherited from Base
Attributes included from Concerns::Aliases
Class Method Summary collapse
- .collection_path(prefix_options = {}, query_options = nil) ⇒ Object
- .element_path(id, prefix_options = {}, query_options = nil) ⇒ Object
Instance Method Summary collapse
Methods inherited from Base
cached_shopify_webhook?, client, #client, exclude_from_json, #formatted_id, #graphql_input, #headers, #include_root_in_json, inherited, #initialize, initialize_singleton!, #mapped?, #native_keys, platform_specific_class?, prefix=, #read_only?
Methods included from Countable
Methods included from Concerns::GraphQLable
#graphql_mutation_string, #mutate_graphql, #remove_mutation_root_from
Methods included from Concerns::Aliases
Methods included from Concerns::FullJson
Methods included from Concerns::OverwriteRequestMethods
Methods included from Concerns::OverwriteInstanceMethods
#as_eplat_json, #as_json, #create, #create_resource_for, #to_eplat_json, #to_json, #update
Constructor Details
This class inherits a constructor from EPlat::Base
Class Method Details
.collection_path(prefix_options = {}, query_options = nil) ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/e_plat/resource/webhook.rb', line 25 def self.collection_path( = {}, = nil) if client.bigcommerce? super(, ).gsub("webhooks", "hooks") else super(, ) end end |
.element_path(id, prefix_options = {}, query_options = nil) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/e_plat/resource/webhook.rb', line 17 def self.element_path(id, = {}, = nil) if client.bigcommerce? super(id, , ).gsub("webhooks", "hooks") else super(id, , ) end end |
Instance Method Details
#collection_path(options = {}) ⇒ Object
41 42 43 44 45 46 47 |
# File 'lib/e_plat/resource/webhook.rb', line 41 def collection_path( = {}) if client.bigcommerce? super().gsub("webhooks", "hooks") else super() end end |
#element_path(options = {}) ⇒ Object
33 34 35 36 37 38 39 |
# File 'lib/e_plat/resource/webhook.rb', line 33 def element_path( = {}) if client.bigcommerce? super().gsub("webhooks", "hooks") else super() end end |