Class: ProjectStartResponse
- Inherits:
-
Object
- Object
- ProjectStartResponse
- Includes:
- ActiveModel::Model, ActiveModel::Serializers::JSON
- Defined in:
- lib/yadecli/cli/response/project_start_response.rb
Overview
project start response
Instance Attribute Summary collapse
-
#project ⇒ Object
Returns the value of attribute project.
-
#project_home ⇒ Object
Returns the value of attribute project_home.
-
#selection ⇒ Object
Returns the value of attribute selection.
Instance Method Summary collapse
Instance Attribute Details
#project ⇒ Object
Returns the value of attribute project.
10 11 12 |
# File 'lib/yadecli/cli/response/project_start_response.rb', line 10 def project @project end |
#project_home ⇒ Object
Returns the value of attribute project_home.
10 11 12 |
# File 'lib/yadecli/cli/response/project_start_response.rb', line 10 def project_home @project_home end |
#selection ⇒ Object
Returns the value of attribute selection.
10 11 12 |
# File 'lib/yadecli/cli/response/project_start_response.rb', line 10 def selection @selection end |
Instance Method Details
#attributes ⇒ Object
14 15 16 |
# File 'lib/yadecli/cli/response/project_start_response.rb', line 14 def attributes instance_values end |
#write(path) ⇒ Object
18 19 20 |
# File 'lib/yadecli/cli/response/project_start_response.rb', line 18 def write(path) File.open(path, 'w') { |file| file.write(self.as_json(include: :project).to_json) } end |