Class: Deta::Resource
- Inherits:
-
Object
- Object
- Deta::Resource
- Defined in:
- lib/deta/resource.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#resource_name ⇒ Object
readonly
Returns the value of attribute resource_name.
Instance Method Summary collapse
-
#initialize(client, resource_name) ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
#initialize(client, resource_name) ⇒ Resource
Returns a new instance of Resource.
5 6 7 8 |
# File 'lib/deta/resource.rb', line 5 def initialize(client, resource_name) @client = client @resource_name = resource_name end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
3 4 5 |
# File 'lib/deta/resource.rb', line 3 def client @client end |
#resource_name ⇒ Object (readonly)
Returns the value of attribute resource_name.
3 4 5 |
# File 'lib/deta/resource.rb', line 3 def resource_name @resource_name end |