Class: StructuraidCore::Materials::Concrete
- Defined in:
- lib/structuraid_core/materials/concrete.rb
Instance Attribute Summary collapse
-
#design_compression_strength ⇒ Object
readonly
Returns the value of attribute design_compression_strength.
-
#elastic_module ⇒ Object
readonly
Returns the value of attribute elastic_module.
-
#specific_weight ⇒ Object
readonly
Returns the value of attribute specific_weight.
Instance Method Summary collapse
-
#initialize(elastic_module:, design_compression_strength:, specific_weight:) ⇒ Concrete
constructor
A new instance of Concrete.
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_strength ⇒ Object (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_module ⇒ Object (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_weight ⇒ Object (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 |