Class: FfApi::School

Inherits:
Object
  • Object
show all
Defined in:
lib/ff_api/school.rb

Instance Method Summary collapse

Constructor Details

#initialize(school_hash) ⇒ School

Returns a new instance of School.



12
13
14
# File 'lib/ff_api/school.rb', line 12

def initialize(school_hash)
    set(school_hash)
end

Instance Method Details

#set(params) ⇒ Object



16
17
18
19
# File 'lib/ff_api/school.rb', line 16

def set(params)
    params.each { |key, value| send("#{key}=", value) }
    self
end