Class: ProjectStartResponse

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model, ActiveModel::Serializers::JSON
Defined in:
lib/yadecli/cli/response/project_start_response.rb

Overview

project start response

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#projectObject

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_homeObject

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

#selectionObject

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

#attributesObject



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