Class: StructuraidCore::Materials::Concrete

Inherits:
Base
  • Object
show all
Defined in:
lib/structuraid_core/materials/concrete.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elastic_module:, design_compression_strength:, specific_weight:) ⇒ Concrete

Returns a new instance of Concrete.



6
7
8
9
10
# File 'lib/structuraid_core/materials/concrete.rb', line 6

def initialize(elastic_module:, design_compression_strength:, specific_weight:)
  @elastic_module = elastic_module.to_f
  @design_compression_strength = design_compression_strength.to_f
  @specific_weight = specific_weight.to_f
end

Instance Attribute Details

#design_compression_strengthObject (readonly)

Returns the value of attribute design_compression_strength.



4
5
6
# File 'lib/structuraid_core/materials/concrete.rb', line 4

def design_compression_strength
  @design_compression_strength
end

#elastic_moduleObject (readonly)

Returns the value of attribute elastic_module.



4
5
6
# File 'lib/structuraid_core/materials/concrete.rb', line 4

def elastic_module
  @elastic_module
end

#specific_weightObject (readonly)

Returns the value of attribute specific_weight.



4
5
6
# File 'lib/structuraid_core/materials/concrete.rb', line 4

def specific_weight
  @specific_weight
end