Class: Breadbox::Client
- Inherits:
-
Object
- Object
- Breadbox::Client
- Defined in:
- lib/breadbox/client.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
Instance Method Summary collapse
- #client ⇒ Object
-
#initialize(configuration = nil) ⇒ Client
constructor
A new instance of Client.
- #root_path ⇒ Object
- #upload ⇒ Object
Constructor Details
#initialize(configuration = nil) ⇒ Client
Returns a new instance of Client.
7 8 9 10 |
# File 'lib/breadbox/client.rb', line 7 def initialize(configuration = nil) @configuration = configuration || NullConfiguration.new post_initialize end |
Instance Attribute Details
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
5 6 7 |
# File 'lib/breadbox/client.rb', line 5 def configuration @configuration end |
Instance Method Details
#client ⇒ Object
12 13 14 |
# File 'lib/breadbox/client.rb', line 12 def client @client ||= new_client_from_configuration end |
#root_path ⇒ Object
16 17 18 |
# File 'lib/breadbox/client.rb', line 16 def root_path configuration.root_path end |
#upload ⇒ Object
20 21 22 |
# File 'lib/breadbox/client.rb', line 20 def upload(*) not_implemented end |