Class: Base
- Inherits:
-
Object
- Object
- Base
- Defined in:
- lib/wordsapi/base.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
readonly
Returns the value of attribute access_token.
Instance Method Summary collapse
-
#initialize(access_token: '') ⇒ Base
constructor
A new instance of Base.
- #service_url ⇒ Object
Constructor Details
#initialize(access_token: '') ⇒ Base
Returns a new instance of Base.
11 12 13 |
# File 'lib/wordsapi/base.rb', line 11 def initialize(access_token: '') @access_token = access_token end |
Instance Attribute Details
#access_token ⇒ Object (readonly)
Returns the value of attribute access_token.
9 10 11 |
# File 'lib/wordsapi/base.rb', line 9 def access_token @access_token end |
Instance Method Details
#service_url ⇒ Object
15 16 17 |
# File 'lib/wordsapi/base.rb', line 15 def service_url raise NotImplementedError end |