Class: StructuraidCore::Loads::PointLoad

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#labelObject (readonly)

Returns the value of attribute label.



5
6
7
# File 'lib/structuraid_core/loads/point_load.rb', line 5

def label
  @label
end

#locationObject (readonly)

Returns the value of attribute location.



5
6
7
# File 'lib/structuraid_core/loads/point_load.rb', line 5

def location
  @location
end

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/structuraid_core/loads/point_load.rb', line 4

def value
  @value
end