Class: Mumuki::Domain::Organization::Profile

Inherits:
Mumukit::Platform::Model
  • Object
show all
Defined in:
lib/mumuki/domain/organization/profile.rb

Constant Summary collapse

LOCALES =
Mumukit::Platform::Locale::SPECS

Instance Method Summary collapse

Instance Method Details



30
31
32
# File 'lib/mumuki/domain/organization/profile.rb', line 30

def banner_url
  @banner_url || logo_url  # Best image size: 350x75
end

#favicon_urlObject



34
35
36
# File 'lib/mumuki/domain/organization/profile.rb', line 34

def favicon_url
  @favicon_url ||= '/favicon.ico'  # Best image size: 16x16, 32x32 or 48x48
end

#locale_hObject



22
23
24
# File 'lib/mumuki/domain/organization/profile.rb', line 22

def locale_h
  Mumukit::Platform::Locale::SPECS[locale]
end

#locale_jsonObject



18
19
20
# File 'lib/mumuki/domain/organization/profile.rb', line 18

def locale_json
  locale_h.to_json
end

#logo_urlObject



26
27
28
# File 'lib/mumuki/domain/organization/profile.rb', line 26

def logo_url
  @logo_url ||= 'https://mumuki.io/logo-alt-large.png' # Best image size: 350x75
end

#open_graph_image_urlObject



38
39
40
# File 'lib/mumuki/domain/organization/profile.rb', line 38

def open_graph_image_url
  @open_graph_image_url ||= Mumukit::Platform.laboratory.url_for("logo-alt.png")  # Best image size: 256x256
end