Class: FfApi::School
- Inherits:
-
Object
- Object
- FfApi::School
- Defined in:
- lib/ff_api/school.rb
Instance Method Summary collapse
-
#initialize(school_hash) ⇒ School
constructor
A new instance of School.
- #set(params) ⇒ Object
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 |