Class: Scalarium::Resource
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Scalarium::Resource
- Includes:
- Api
- Defined in:
- lib/scalarium/resource.rb
Direct Known Subclasses
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(token, attributes = {}) ⇒ Resource
constructor
A new instance of Resource.
Methods included from Api
Constructor Details
#initialize(token, attributes = {}) ⇒ Resource
Returns a new instance of Resource.
4 5 6 7 |
# File 'lib/scalarium/resource.rb', line 4 def initialize(token, attributes = {}) @token = token super(attributes) end |
Instance Method Details
#id ⇒ Object
9 10 11 |
# File 'lib/scalarium/resource.rb', line 9 def id @table[:id] end |