Class: SkiBinding::Calculator

Inherits:
Object
  • Object
show all
Extended by:
ConfigLoader
Defined in:
lib/ski_binding_calculator/calculator.rb

Class Method Summary collapse

Methods included from ConfigLoader

load_binding_codes, load_binding_settings

Class Method Details

.setting(attrs) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/ski_binding_calculator/calculator.rb', line 8

def self.setting(attrs)
  self.validate_attrs(attrs)
  attrs = self.prep_attributes(attrs)
  attrs = self.age(attrs)
  attrs = self.validate_type(attrs)
  code = self.binding_code(attrs)
  self.binding_setting(attrs, code)
end