Class: StructuraidCore::Loads::UniformLoad
- Defined in:
- lib/structuraid_core/loads/uniform_load.rb
Instance Attribute Summary collapse
-
#end_value ⇒ Object
Returns the value of attribute end_value.
-
#start_location ⇒ Object
readonly
Returns the value of attribute start_location.
-
#start_value ⇒ Object
Returns the value of attribute start_value.
Instance Method Summary collapse
-
#initialize(start_value:, end_value:, start_location:, end_location:) ⇒ UniformLoad
constructor
A new instance of UniformLoad.
Constructor Details
#initialize(start_value:, end_value:, start_location:, end_location:) ⇒ UniformLoad
Returns a new instance of UniformLoad.
7 8 9 10 11 12 |
# File 'lib/structuraid_core/loads/uniform_load.rb', line 7 def initialize(start_value:, end_value:, start_location:, end_location:) @start_value = start_value.to_f @end_value = end_value.to_f @start_location = start_location @end_location = end_location end |
Instance Attribute Details
#end_value ⇒ Object
Returns the value of attribute end_value.
4 5 6 |
# File 'lib/structuraid_core/loads/uniform_load.rb', line 4 def end_value @end_value end |
#start_location ⇒ Object (readonly)
Returns the value of attribute start_location.
5 6 7 |
# File 'lib/structuraid_core/loads/uniform_load.rb', line 5 def start_location @start_location end |
#start_value ⇒ Object
Returns the value of attribute start_value.
4 5 6 |
# File 'lib/structuraid_core/loads/uniform_load.rb', line 4 def start_value @start_value end |