Class: StructuraidCore::Loads::UniformLoad

Inherits:
Base
  • Object
show all
Defined in:
lib/structuraid_core/loads/uniform_load.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_valueObject

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_locationObject (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_valueObject

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