Class: Brocktail::API::Base
- Inherits:
-
Object
- Object
- Brocktail::API::Base
- Defined in:
- lib/brocktail/api/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#credentials ⇒ Object
readonly
Returns the value of attribute credentials.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(credentials) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(credentials) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/brocktail/api/base.rb', line 6 def initialize(credentials) @credentials = credentials end |
Instance Attribute Details
#credentials ⇒ Object (readonly)
Returns the value of attribute credentials.
4 5 6 |
# File 'lib/brocktail/api/base.rb', line 4 def credentials @credentials end |
Class Method Details
.api_model(klass) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/brocktail/api/base.rb', line 11 def api_model(klass) class_eval <<-END def api_model #{klass} end END end |