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.



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

def initialize(school_hash)
    set(school_hash)
end

Instance Method Details

#set(params) ⇒ Object



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

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