Class: ShopifyAPI::Auth::Oauth::AuthQuery
- Inherits:
-
Object
- Object
- ShopifyAPI::Auth::Oauth::AuthQuery
- Extended by:
- T::Sig
- Includes:
- Utils::VerifiableQuery
- Defined in:
- lib/shopify_api/auth/oauth/auth_query.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#hmac ⇒ Object
readonly
Returns the value of attribute hmac.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#shop ⇒ Object
readonly
Returns the value of attribute shop.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(code:, shop:, timestamp:, state:, host:, hmac:) ⇒ AuthQuery
constructor
A new instance of AuthQuery.
- #to_signable_string ⇒ Object
Constructor Details
#initialize(code:, shop:, timestamp:, state:, host:, hmac:) ⇒ AuthQuery
Returns a new instance of AuthQuery.
24 25 26 27 28 29 30 31 |
# File 'lib/shopify_api/auth/oauth/auth_query.rb', line 24 def initialize(code:, shop:, timestamp:, state:, host:, hmac:) @code = code @shop = shop @timestamp = @state = state @host = host @hmac = hmac end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
12 13 14 |
# File 'lib/shopify_api/auth/oauth/auth_query.rb', line 12 def code @code end |
#hmac ⇒ Object (readonly)
Returns the value of attribute hmac.
12 13 14 |
# File 'lib/shopify_api/auth/oauth/auth_query.rb', line 12 def hmac @hmac end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
12 13 14 |
# File 'lib/shopify_api/auth/oauth/auth_query.rb', line 12 def host @host end |
#shop ⇒ Object (readonly)
Returns the value of attribute shop.
12 13 14 |
# File 'lib/shopify_api/auth/oauth/auth_query.rb', line 12 def shop @shop end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
12 13 14 |
# File 'lib/shopify_api/auth/oauth/auth_query.rb', line 12 def state @state end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
12 13 14 |
# File 'lib/shopify_api/auth/oauth/auth_query.rb', line 12 def @timestamp end |
Instance Method Details
#to_signable_string ⇒ Object
34 35 36 37 38 39 40 41 42 43 |
# 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: , } URI.encode_www_form(params) end |