Class: StructuraidCore::Materials::Soil

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_capacityObject (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