Class: Yadecli::Client::ComposerProjectClient
- Inherits:
-
BaseClient
- Object
- BaseClient
- Yadecli::Client::ComposerProjectClient
- Includes:
- HTTParty
- Defined in:
- lib/yadecli/client/composer_project_client.rb
Overview
project client
Instance Method Summary collapse
- #get_by_name(name) ⇒ Object
-
#initialize ⇒ ComposerProjectClient
constructor
A new instance of ComposerProjectClient.
Methods inherited from BaseClient
#base_path, #get, #get_request, #list
Constructor Details
#initialize ⇒ ComposerProjectClient
Returns a new instance of ComposerProjectClient.
18 19 20 |
# File 'lib/yadecli/client/composer_project_client.rb', line 18 def initialize super('yadecomposer', 'composer-project') end |
Instance Method Details
#get_by_name(name) ⇒ Object
22 23 24 |
# File 'lib/yadecli/client/composer_project_client.rb', line 22 def get_by_name(name) list.select { |composer_project| composer_project.name == name }.first end |