Class: ShopifyAPI::Auth::Oauth::AccessTokenResponse

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/shopify_api/auth/oauth/access_token_response.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



24
25
26
27
28
29
30
31
32
33
# File 'lib/shopify_api/auth/oauth/access_token_response.rb', line 24

def ==(other)
  return false unless other

  access_token == other.access_token &&
    scope == other.scope &&
    session == other.session &&
    expires_in == other.expires_in &&
    associated_user == other.associated_user &&
    associated_user_scope == other.associated_user_scope
end

#eql?Object



22
# File 'lib/shopify_api/auth/oauth/access_token_response.rb', line 22

alias_method :eql?, :==

#online_token?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/shopify_api/auth/oauth/access_token_response.rb', line 18

def online_token?
  !associated_user.nil?
end