module Seoshop
Constants
- VERSION
Attributes
parallel_requests[RW]
@!attribute parallel_requests
@return [Integer String] defines the maximum parallel request for the gem to preform
Public Class Methods
client(api_key, api_secret, access_token, shop_language, cluster_id = 'eu1')
click to toggle source
@return an instance of Seoshop::Client
# File lib/seoshop-api.rb, line 31 def client(api_key, api_secret, access_token, shop_language, cluster_id = 'eu1') @client ||= Seoshop::Client.new(api_key, api_secret, access_token, shop_language, cluster_id) end
configure() { |self| ... }
click to toggle source
Configuration interface of the gem
@yield [self] to accept configuration settings
# File lib/seoshop-api.rb, line 14 def configure yield self true end
respond_to_missing?(method_name, include_private=false)
click to toggle source
Makes sure that the method missing is checked with the Seoshop::Client
instance
@param method_name [String] the name of the method we want to run @param include_private [Boolean] defines wether to check for private functions as well
# File lib/seoshop-api.rb, line 24 def respond_to_missing?(method_name, include_private=false) client.respond_to?(method_name, include_private) end
Private Class Methods
method_missing(method_name, *args, &block)
click to toggle source
executes any function on the Seoshop::Client
instance
@param args [*] any argument that we want to pass to the client function @param block [Block] any block that is passed to the client function
Calls superclass method
# File lib/seoshop-api.rb, line 42 def method_missing(method_name, *args, &block) return super unless client.respond_to?(method_name) client.send(method_name, *args, &block) end