Class: Arbetsformedlingen::Salary

Inherits:
Model
  • Object
show all
Defined in:
lib/arbetsformedlingen/models/salary.rb

Instance Attribute Summary

Attributes inherited from Model

#schema

Instance Method Summary collapse

Methods inherited from Model

#errors, from_schema, #to_h, #valid?

Constructor Details

#initialize(hash) ⇒ Salary

Returns a new instance of Salary.



18
19
20
# File 'lib/arbetsformedlingen/models/salary.rb', line 18

def initialize(hash)
  super(SalarySchema.call(hash))
end