Class: StructuraidCore::Loads::PointLoad
- Defined in:
- lib/structuraid_core/loads/point_load.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value:, location:, label: nil) ⇒ PointLoad
constructor
A new instance of PointLoad.
Constructor Details
#initialize(value:, location:, label: nil) ⇒ PointLoad
Returns a new instance of PointLoad.
7 8 9 10 11 |
# File 'lib/structuraid_core/loads/point_load.rb', line 7 def initialize(value:, location:, label: nil) @value = value.to_f @location = location @label = label&.to_sym end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
5 6 7 |
# File 'lib/structuraid_core/loads/point_load.rb', line 5 def label @label end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
5 6 7 |
# File 'lib/structuraid_core/loads/point_load.rb', line 5 def location @location end |
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/structuraid_core/loads/point_load.rb', line 4 def value @value end |