Class: FedenaSdk::School

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

Instance Attribute Summary collapse

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

#imageObject

Returns the value of attribute image.



3
4
5
# File 'lib/fedena_sdk/school.rb', line 3

def image
  @image
end

#institute_addressObject

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_currencyObject

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_languageObject

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_nameObject

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_phoneObject

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_zoneObject

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_schoolObject



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