Class: Mumuki::Domain::Organization::Profile
- Inherits:
-
Mumukit::Platform::Model
- Object
- Mumukit::Platform::Model
- Mumuki::Domain::Organization::Profile
- Defined in:
- lib/mumuki/domain/organization/profile.rb
Constant Summary collapse
- LOCALES =
Mumukit::Platform::Locale::SPECS
Instance Method Summary collapse
- #banner_url ⇒ Object
- #favicon_url ⇒ Object
- #locale_h ⇒ Object
- #locale_json ⇒ Object
- #logo_url ⇒ Object
- #open_graph_image_url ⇒ Object
Instance Method Details
#banner_url ⇒ Object
28 29 30 |
# File 'lib/mumuki/domain/organization/profile.rb', line 28 def @banner_url || logo_url # Best image size: 350x75 end |
#favicon_url ⇒ Object
32 33 34 |
# File 'lib/mumuki/domain/organization/profile.rb', line 32 def favicon_url @favicon_url ||= '/favicon.ico' # Best image size: 16x16, 32x32 or 48x48 end |
#locale_h ⇒ Object
20 21 22 |
# File 'lib/mumuki/domain/organization/profile.rb', line 20 def locale_h Mumukit::Platform::Locale::SPECS[locale] end |
#locale_json ⇒ Object
16 17 18 |
# File 'lib/mumuki/domain/organization/profile.rb', line 16 def locale_json locale_h.to_json end |
#logo_url ⇒ Object
24 25 26 |
# File 'lib/mumuki/domain/organization/profile.rb', line 24 def logo_url @logo_url ||= 'https://mumuki.io/logo-alt-large.png' # Best image size: 350x75 end |
#open_graph_image_url ⇒ Object
36 37 38 |
# File 'lib/mumuki/domain/organization/profile.rb', line 36 def open_graph_image_url @open_graph_image_url ||= Mumukit::Platform.application.url_for("logo-alt.png") # Best image size: 256x256 end |