Class: IOSGen::Base::ViewModel

Inherits:
Object
  • Object
show all
Defined in:
lib/ios_gen/base/view_model.rb

Overview

ViewModel class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ ViewModel

Returns a new instance of ViewModel.



7
8
9
10
11
12
13
# File 'lib/ios_gen/base/view_model.rb', line 7

def initialize(params = {})
  @description = params[:description]
  @name = params[:name]
  @properties = params[:properties]
  @actions = params[:actions]
  @interactors = params[:interactors]
end

Instance Attribute Details

#actionsObject

Returns the value of attribute actions.



5
6
7
# File 'lib/ios_gen/base/view_model.rb', line 5

def actions
  @actions
end

#descriptionObject

Returns the value of attribute description.



5
6
7
# File 'lib/ios_gen/base/view_model.rb', line 5

def description
  @description
end

#interactorsObject

Returns the value of attribute interactors.



5
6
7
# File 'lib/ios_gen/base/view_model.rb', line 5

def interactors
  @interactors
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/ios_gen/base/view_model.rb', line 5

def name
  @name
end

#propertiesObject

Returns the value of attribute properties.



5
6
7
# File 'lib/ios_gen/base/view_model.rb', line 5

def properties
  @properties
end