Class: Blueticks::BaseResource

Inherits:
Object
  • Object
show all
Defined in:
lib/blueticks/base_resource.rb

Overview

Shared plumbing for all resource classes. Holds a reference to the parent client.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ BaseResource

Returns a new instance of BaseResource.



6
7
8
# File 'lib/blueticks/base_resource.rb', line 6

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



10
11
12
# File 'lib/blueticks/base_resource.rb', line 10

def client
  @client
end