Module: ApiAuth::Client::Base::ClassMethods
- Defined in:
- lib/api_auth/client/base.rb
Instance Attribute Summary collapse
-
#attr_app_id ⇒ Object
readonly
Returns the value of attribute attr_app_id.
-
#attr_args ⇒ Object
readonly
Returns the value of attribute attr_args.
-
#attr_auth_token ⇒ Object
readonly
Returns the value of attribute attr_auth_token.
-
#attr_secret_key ⇒ Object
readonly
Returns the value of attribute attr_secret_key.
-
#attr_type ⇒ Object
readonly
Returns the value of attribute attr_type.
-
#attr_url ⇒ Object
readonly
Returns the value of attribute attr_url.
Instance Method Summary collapse
-
#connect(url:, app_id: nil, secret_key: nil, type: :hmac, auth_token: nil, args: {}) ⇒ Object
rubocop:disable Metrics/ParameterLists.
Instance Attribute Details
#attr_app_id ⇒ Object (readonly)
Returns the value of attribute attr_app_id.
13 14 15 |
# File 'lib/api_auth/client/base.rb', line 13 def attr_app_id @attr_app_id end |
#attr_args ⇒ Object (readonly)
Returns the value of attribute attr_args.
13 14 15 |
# File 'lib/api_auth/client/base.rb', line 13 def attr_args @attr_args end |
#attr_auth_token ⇒ Object (readonly)
Returns the value of attribute attr_auth_token.
13 14 15 |
# File 'lib/api_auth/client/base.rb', line 13 def attr_auth_token @attr_auth_token end |
#attr_secret_key ⇒ Object (readonly)
Returns the value of attribute attr_secret_key.
13 14 15 |
# File 'lib/api_auth/client/base.rb', line 13 def attr_secret_key @attr_secret_key end |
#attr_type ⇒ Object (readonly)
Returns the value of attribute attr_type.
13 14 15 |
# File 'lib/api_auth/client/base.rb', line 13 def attr_type @attr_type end |
#attr_url ⇒ Object (readonly)
Returns the value of attribute attr_url.
13 14 15 |
# File 'lib/api_auth/client/base.rb', line 13 def attr_url @attr_url end |
Instance Method Details
#connect(url:, app_id: nil, secret_key: nil, type: :hmac, auth_token: nil, args: {}) ⇒ Object
rubocop:disable Metrics/ParameterLists
15 16 17 18 19 20 21 22 |
# File 'lib/api_auth/client/base.rb', line 15 def connect(url:, app_id: nil, secret_key: nil, type: :hmac, auth_token: nil, args: {}) # rubocop:disable Metrics/ParameterLists @attr_url = url @attr_app_id = app_id @attr_secret_key = secret_key @attr_type = type&.to_sym @attr_auth_token = auth_token @attr_args = args end |