Class: Kinu::ResourceBase
- Inherits:
-
Object
- Object
- Kinu::ResourceBase
- Defined in:
- lib/kinu/resource_base.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, id, options = {}) ⇒ ResourceBase
constructor
A new instance of ResourceBase.
- #path(options) ⇒ Object
- #uri(options) ⇒ Object
Constructor Details
#initialize(name, id, options = {}) ⇒ ResourceBase
Returns a new instance of ResourceBase.
8 9 10 |
# File 'lib/kinu/resource_base.rb', line 8 def initialize(name, id, = {}) @name, @id, @options = name, id, end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/kinu/resource_base.rb', line 6 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/kinu/resource_base.rb', line 6 def name @name end |