Class: ApiGW::ApiBase
- Inherits:
-
Object
show all
- Defined in:
- lib/apigw/api_base.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(client, opts = {}) ⇒ ApiBase
Returns a new instance of ApiBase.
16
17
18
19
20
21
|
# File 'lib/apigw/api_base.rb', line 16
def initialize(client, opts = {})
@client = client
@consumer_key = opts[:consumer_key]
@secret_key = opts[:secret_key]
@access_token = opts[:access_token]
end
|
Class Method Details
.api_name ⇒ Object
7
8
9
|
# File 'lib/apigw/api_base.rb', line 7
def api_name
raise NotImplementedError
end
|
.require_authorization? ⇒ Boolean
11
12
13
|
# File 'lib/apigw/api_base.rb', line 11
def require_authorization?
false
end
|