Class: ImageBoss::Client
- Inherits:
-
Object
- Object
- ImageBoss::Client
- Defined in:
- lib/imageboss/client.rb
Instance Method Summary collapse
-
#initialize(source:, enabled: true, secret: false) ⇒ Client
constructor
A new instance of Client.
- #path(asset_path) ⇒ Object
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) = { 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(, asset_path) end |