Class: AbstractApiWrapper::Client
- Inherits:
-
Object
- Object
- AbstractApiWrapper::Client
- Defined in:
- lib/abstract_api_wrapper.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
readonly
Returns the value of attribute access_token.
-
#apiver ⇒ Object
readonly
Returns the value of attribute apiver.
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
Instance Method Summary collapse
-
#initialize(**options) ⇒ Client
constructor
A new instance of Client.
- #method_missing(name, *params, &block) ⇒ Object
Constructor Details
#initialize(**options) ⇒ Client
Returns a new instance of Client.
10 11 12 13 14 |
# File 'lib/abstract_api_wrapper.rb', line 10 def initialize(**) @base_url = [:base_url] @apiver = [:apiver] @access_token = [:access_token] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Attribute Details
#access_token ⇒ Object (readonly)
Returns the value of attribute access_token.
8 9 10 |
# File 'lib/abstract_api_wrapper.rb', line 8 def access_token @access_token end |
#apiver ⇒ Object (readonly)
Returns the value of attribute apiver.
8 9 10 |
# File 'lib/abstract_api_wrapper.rb', line 8 def apiver @apiver end |
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
8 9 10 |
# File 'lib/abstract_api_wrapper.rb', line 8 def base_url @base_url end |