Class: Entrance::Agent::Restful
- Inherits:
-
Object
- Object
- Entrance::Agent::Restful
- Includes:
- Fake::Hash
- Defined in:
- lib/entrance/agent/restful.rb
Direct Known Subclasses
Defined Under Namespace
Classes: GatewayTimeout, Invalid, Unavailable
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Restful
constructor
A new instance of Restful.
- #to_rest ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ Restful
Returns a new instance of Restful.
17 18 19 20 21 22 23 |
# File 'lib/entrance/agent/restful.rb', line 17 def initialize params={} if self.class.included_modules.include? ::Entrance::Globalizer self.class.current = self end @id = params[:id] read if params[:load] and id end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
15 16 17 |
# File 'lib/entrance/agent/restful.rb', line 15 def id @id end |
Instance Method Details
#to_rest ⇒ Object
27 28 29 |
# File 'lib/entrance/agent/restful.rb', line 27 def to_rest raise NotImplementedError end |