Class: Deta::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/deta/resource.rb

Direct Known Subclasses

BaseResource, DriveResource

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject (readonly)

Returns the value of attribute client.



3
4
5
# File 'lib/deta/resource.rb', line 3

def client
  @client
end

#resource_nameObject (readonly)

Returns the value of attribute resource_name.



3
4
5
# File 'lib/deta/resource.rb', line 3

def resource_name
  @resource_name
end