Class: XporterOnDemand::Registration::School
- Inherits:
-
Object
- Object
- XporterOnDemand::Registration::School
- Includes:
- ActiveModel::Model
- Defined in:
- lib/xporter_on_demand/registration.rb
Instance Method Summary collapse
Instance Method Details
#camelize ⇒ Object
35 36 37 |
# File 'lib/xporter_on_demand/registration.rb', line 35 def camelize to_h.transform_keys{ |k| k.to_s.camelcase }.reject{ |_k, v| v.nil? || (String === v && v.empty?) } end |
#to_h ⇒ Object
39 40 41 42 43 |
# File 'lib/xporter_on_demand/registration.rb', line 39 def to_h SCHOOL_ATTRIBUTES.each_with_object({}) do |key, hash| hash[key] = send(key) end end |