Class: Immutabler::DSL::Model

Inherits:
Object
  • Object
show all
Defined in:
lib/immutabler/dsl/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, base, base_immutable, builder_base, props) ⇒ Model

Returns a new instance of Model.



6
7
8
9
10
11
12
# File 'lib/immutabler/dsl/model.rb', line 6

def initialize(name, base, base_immutable, builder_base, props)
  @name = name
  @base = base
  @base_immutable = base_immutable
  @builder_base = builder_base
  @props = props
end

Instance Attribute Details

#baseObject

Returns the value of attribute base.



4
5
6
# File 'lib/immutabler/dsl/model.rb', line 4

def base
  @base
end

#base_immutableObject

Returns the value of attribute base_immutable.



4
5
6
# File 'lib/immutabler/dsl/model.rb', line 4

def base_immutable
  @base_immutable
end

#builder_baseObject

Returns the value of attribute builder_base.



4
5
6
# File 'lib/immutabler/dsl/model.rb', line 4

def builder_base
  @builder_base
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/immutabler/dsl/model.rb', line 4

def name
  @name
end

#propsObject

Returns the value of attribute props.



4
5
6
# File 'lib/immutabler/dsl/model.rb', line 4

def props
  @props
end