Class: Api::Base
- Inherits:
-
Object
- Object
- Api::Base
- Defined in:
- lib/generators/api/templates/api_base.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, key, secret) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(url, key, secret) ⇒ Base
Returns a new instance of Base.
8 9 10 11 12 |
# File 'lib/generators/api/templates/api_base.rb', line 8 def initialize(url, key, secret) self.url = url self.key = key self.secret = secret end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
6 7 8 |
# File 'lib/generators/api/templates/api_base.rb', line 6 def key @key end |
#secret ⇒ Object
Returns the value of attribute secret.
6 7 8 |
# File 'lib/generators/api/templates/api_base.rb', line 6 def secret @secret end |
#url ⇒ Object
Returns the value of attribute url.
6 7 8 |
# File 'lib/generators/api/templates/api_base.rb', line 6 def url @url end |