Class: FedenaSdk::School
Instance Attribute Summary collapse
-
#image ⇒ Object
Returns the value of attribute image.
-
#institute_address ⇒ Object
Returns the value of attribute institute_address.
-
#institute_currency ⇒ Object
Returns the value of attribute institute_currency.
-
#institute_language ⇒ Object
Returns the value of attribute institute_language.
-
#institute_name ⇒ Object
Returns the value of attribute institute_name.
-
#institute_phone ⇒ Object
Returns the value of attribute institute_phone.
-
#institute_time_zone ⇒ Object
Returns the value of attribute institute_time_zone.
Class Method Summary collapse
Methods inherited from Model
attr_accessor, #attributes, #attributes_hash, get, #get, #initialize, #post, post, request, #request
Constructor Details
This class inherits a constructor from FedenaSdk::Model
Instance Attribute Details
#image ⇒ Object
Returns the value of attribute image.
3 4 5 |
# File 'lib/fedena_sdk/school.rb', line 3 def image @image end |
#institute_address ⇒ Object
Returns the value of attribute institute_address.
3 4 5 |
# File 'lib/fedena_sdk/school.rb', line 3 def institute_address @institute_address end |
#institute_currency ⇒ Object
Returns the value of attribute institute_currency.
3 4 5 |
# File 'lib/fedena_sdk/school.rb', line 3 def institute_currency @institute_currency end |
#institute_language ⇒ Object
Returns the value of attribute institute_language.
3 4 5 |
# File 'lib/fedena_sdk/school.rb', line 3 def institute_language @institute_language end |
#institute_name ⇒ Object
Returns the value of attribute institute_name.
3 4 5 |
# File 'lib/fedena_sdk/school.rb', line 3 def institute_name @institute_name end |
#institute_phone ⇒ Object
Returns the value of attribute institute_phone.
3 4 5 |
# File 'lib/fedena_sdk/school.rb', line 3 def institute_phone @institute_phone end |
#institute_time_zone ⇒ Object
Returns the value of attribute institute_time_zone.
3 4 5 |
# File 'lib/fedena_sdk/school.rb', line 3 def institute_time_zone @institute_time_zone end |
Class Method Details
.current_school ⇒ Object
5 6 7 8 9 |
# File 'lib/fedena_sdk/school.rb', line 5 def self.current_school url = '/api/schools' hash = get(url) new hash['school_detail']['school'] end |