Class: KegbotApi::RestNoun
- Inherits:
-
Object
- Object
- KegbotApi::RestNoun
- Includes:
- RestNounAttributes
- Defined in:
- lib/kegbot_api/nouns/rest_noun.rb
Overview
Base class of all REST nouns (types) in the Kegbot REST API.
Direct Known Subclasses
Class Attribute Summary collapse
- .client ⇒ Client
-
.noun ⇒ Object
Returns the value of attribute noun.
Instance Method Summary collapse
-
#client ⇒ Client
Returns a Client client configured for this class.
-
#initialize(attributes = {}) ⇒ RestNoun
constructor
A new instance of RestNoun.
Constructor Details
#initialize(attributes = {}) ⇒ RestNoun
Returns a new instance of RestNoun.
10 11 12 |
# File 'lib/kegbot_api/nouns/rest_noun.rb', line 10 def initialize(attributes = {}) self.attributes = attributes end |
Class Attribute Details
.client ⇒ Client
24 25 26 |
# File 'lib/kegbot_api/nouns/rest_noun.rb', line 24 def client @client end |
.noun ⇒ Object
Returns the value of attribute noun.
25 26 27 |
# File 'lib/kegbot_api/nouns/rest_noun.rb', line 25 def noun @noun end |