class ShopifyAPI::Auth::Oauth::AuthQuery

Attributes

code[R]
hmac[R]
host[R]
shop[R]
state[R]
timestamp[R]

Public Class Methods

new(code:, shop:, timestamp:, state:, host:, hmac:) click to toggle source
# File lib/shopify_api/auth/oauth/auth_query.rb, line 24
def initialize(code:, shop:, timestamp:, state:, host:, hmac:)
  @code = code
  @shop = shop
  @timestamp = timestamp
  @state = state
  @host = host
  @hmac = hmac
end

Public Instance Methods

to_signable_string() click to toggle source
# File lib/shopify_api/auth/oauth/auth_query.rb, line 34
def to_signable_string
  params = {
    code: code,
    host: host,
    shop: shop,
    state: state,
    timestamp: timestamp,
  }
  URI.encode_www_form(params)
end