Class: Codelocks::CollectionProxy

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/codelocks/collection_proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client: nil, model: nil) ⇒ Codelocks::CollectionProxy

Set configuration variables on instantiation



17
18
19
20
21
22
23
24
# File 'lib/codelocks/collection_proxy.rb', line 17

def initialize(client: nil, model: nil)
  self.client = client
  self.model = model

  model.collection_proxy = self

  self
end

Instance Attribute Details

#clientClient

Returns:



6
7
8
# File 'lib/codelocks/collection_proxy.rb', line 6

def client
  @client
end

#modelLock, ...

Returns:



9
10
11
# File 'lib/codelocks/collection_proxy.rb', line 9

def model
  @model
end