Class: ShopifyClient::Request

Inherits:
Struct
  • Object
show all
Defined in:
lib/shopify-client/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_tokenString?

Returns:

  • (String, nil)


20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/shopify-client/request.rb', line 20

Request = Struct.new(
  :myshopify_domain,
  :access_token,
  :method,
  :path,
  :params,
  :headers,
  :data,
  :client,
) do
  # @return [Boolean]
  def graphql?
    path == '/graphql.json'
  end

  # @return [String]
  def inspect
    "#<ShopifyClient::Request (#{myshopify_domain}#{path})>"
  end
end

#clientClient?

Returns:



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/shopify-client/request.rb', line 20

Request = Struct.new(
  :myshopify_domain,
  :access_token,
  :method,
  :path,
  :params,
  :headers,
  :data,
  :client,
) do
  # @return [Boolean]
  def graphql?
    path == '/graphql.json'
  end

  # @return [String]
  def inspect
    "#<ShopifyClient::Request (#{myshopify_domain}#{path})>"
  end
end

#dataHash?

Returns:

  • (Hash, nil)


20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/shopify-client/request.rb', line 20

Request = Struct.new(
  :myshopify_domain,
  :access_token,
  :method,
  :path,
  :params,
  :headers,
  :data,
  :client,
) do
  # @return [Boolean]
  def graphql?
    path == '/graphql.json'
  end

  # @return [String]
  def inspect
    "#<ShopifyClient::Request (#{myshopify_domain}#{path})>"
  end
end

#headersHash

Returns:

  • (Hash)


20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/shopify-client/request.rb', line 20

Request = Struct.new(
  :myshopify_domain,
  :access_token,
  :method,
  :path,
  :params,
  :headers,
  :data,
  :client,
) do
  # @return [Boolean]
  def graphql?
    path == '/graphql.json'
  end

  # @return [String]
  def inspect
    "#<ShopifyClient::Request (#{myshopify_domain}#{path})>"
  end
end

#methodSymbol

Returns:

  • (Symbol)


20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/shopify-client/request.rb', line 20

Request = Struct.new(
  :myshopify_domain,
  :access_token,
  :method,
  :path,
  :params,
  :headers,
  :data,
  :client,
) do
  # @return [Boolean]
  def graphql?
    path == '/graphql.json'
  end

  # @return [String]
  def inspect
    "#<ShopifyClient::Request (#{myshopify_domain}#{path})>"
  end
end

#myshopify_domainString

Returns:

  • (String)


20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/shopify-client/request.rb', line 20

Request = Struct.new(
  :myshopify_domain,
  :access_token,
  :method,
  :path,
  :params,
  :headers,
  :data,
  :client,
) do
  # @return [Boolean]
  def graphql?
    path == '/graphql.json'
  end

  # @return [String]
  def inspect
    "#<ShopifyClient::Request (#{myshopify_domain}#{path})>"
  end
end

#paramsHash

Returns:

  • (Hash)


20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/shopify-client/request.rb', line 20

Request = Struct.new(
  :myshopify_domain,
  :access_token,
  :method,
  :path,
  :params,
  :headers,
  :data,
  :client,
) do
  # @return [Boolean]
  def graphql?
    path == '/graphql.json'
  end

  # @return [String]
  def inspect
    "#<ShopifyClient::Request (#{myshopify_domain}#{path})>"
  end
end

#pathString

Returns:

  • (String)


20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/shopify-client/request.rb', line 20

Request = Struct.new(
  :myshopify_domain,
  :access_token,
  :method,
  :path,
  :params,
  :headers,
  :data,
  :client,
) do
  # @return [Boolean]
  def graphql?
    path == '/graphql.json'
  end

  # @return [String]
  def inspect
    "#<ShopifyClient::Request (#{myshopify_domain}#{path})>"
  end
end

Instance Method Details

#graphql?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/shopify-client/request.rb', line 31

def graphql?
  path == '/graphql.json'
end

#inspectString

Returns:

  • (String)


36
37
38
# File 'lib/shopify-client/request.rb', line 36

def inspect
  "#<ShopifyClient::Request (#{myshopify_domain}#{path})>"
end