Class: ImageBoss::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/imageboss/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(source:, enabled: true, secret: false) ⇒ Client

Returns a new instance of Client.



3
4
5
6
7
8
9
# File 'lib/imageboss/client.rb', line 3

def initialize(source:, enabled: true, secret: false)
  @options = {
    source: source,
    enabled: enabled,
    secret: secret
  }
end

Instance Method Details

#path(asset_path) ⇒ Object



11
12
13
# File 'lib/imageboss/client.rb', line 11

def path(asset_path)
  Path.new(@options, asset_path)
end