Class: StructuraidCore::Materials::Soil
- Defined in:
- lib/structuraid_core/materials/soil.rb
Instance Attribute Summary collapse
-
#bearing_capacity ⇒ Object
readonly
Returns the value of attribute bearing_capacity.
Instance Method Summary collapse
-
#initialize(bearing_capacity:) ⇒ Soil
constructor
A new instance of Soil.
Constructor Details
#initialize(bearing_capacity:) ⇒ Soil
Returns a new instance of Soil.
6 7 8 |
# File 'lib/structuraid_core/materials/soil.rb', line 6 def initialize(bearing_capacity:) @bearing_capacity = bearing_capacity.to_f end |
Instance Attribute Details
#bearing_capacity ⇒ Object (readonly)
Returns the value of attribute bearing_capacity.
4 5 6 |
# File 'lib/structuraid_core/materials/soil.rb', line 4 def bearing_capacity @bearing_capacity end |