Module: EN14960::API
- Extended by:
- T::Sig
- Defined in:
- lib/en14960/api.rb
Class Method Summary collapse
- .calculate_anchors(length:, width:, height:) ⇒ Object
- .calculate_slide_runout(platform_height, has_stop_wall: false) ⇒ Object
- .calculate_user_capacity(length, width, max_user_height = nil, negative_adjustment_area = 0.0) ⇒ Object
- .calculate_wall_height(platform_height, user_height, has_permanent_roof = nil) ⇒ Object
- .height_categories ⇒ Object
- .material_standards ⇒ Object
- .valid_rope_diameter?(diameter_mm) ⇒ Boolean
- .validate_play_area(unit_length:, unit_width:, play_area_length:, play_area_width:, negative_adjustment_area:) ⇒ Object
Class Method Details
.calculate_anchors(length:, width:, height:) ⇒ Object
14 15 16 |
# File 'lib/en14960/api.rb', line 14 def calculate_anchors(length:, width:, height:) Calculators::AnchorCalculator.calculate(length: length, width: width, height: height) end |
.calculate_slide_runout(platform_height, has_stop_wall: false) ⇒ Object
19 20 21 |
# File 'lib/en14960/api.rb', line 19 def (platform_height, has_stop_wall: false) Calculators::SlideCalculator.calculate_required_runout(platform_height, has_stop_wall: has_stop_wall) end |
.calculate_user_capacity(length, width, max_user_height = nil, negative_adjustment_area = 0.0) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/en14960/api.rb', line 33 def calculate_user_capacity(length, width, max_user_height = nil, negative_adjustment_area = 0.0) Calculators::UserCapacityCalculator.calculate( length, width, max_user_height, negative_adjustment_area ) end |
.calculate_wall_height(platform_height, user_height, has_permanent_roof = nil) ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/en14960/api.rb', line 24 def calculate_wall_height(platform_height, user_height, has_permanent_roof = nil) Calculators::SlideCalculator.calculate_wall_height_requirements( platform_height, user_height, has_permanent_roof ) end |
.height_categories ⇒ Object
48 49 50 |
# File 'lib/en14960/api.rb', line 48 def height_categories Constants::HEIGHT_CATEGORIES end |
.material_standards ⇒ Object
53 54 55 |
# File 'lib/en14960/api.rb', line 53 def material_standards Constants::MATERIAL_STANDARDS end |
.valid_rope_diameter?(diameter_mm) ⇒ Boolean
43 44 45 |
# File 'lib/en14960/api.rb', line 43 def valid_rope_diameter?(diameter_mm) Validators::MaterialValidator.valid_rope_diameter?(diameter_mm) end |
.validate_play_area(unit_length:, unit_width:, play_area_length:, play_area_width:, negative_adjustment_area:) ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/en14960/api.rb', line 66 def validate_play_area( unit_length:, unit_width:, play_area_length:, play_area_width:, negative_adjustment_area: ) Validators::PlayAreaValidator.validate( unit_length: unit_length, unit_width: unit_width, play_area_length: play_area_length, play_area_width: play_area_width, negative_adjustment_area: negative_adjustment_area ) end |