Module: ZendeskAppsSupport::Location
- Defined in:
- lib/zendesk_apps_support/location.rb
Constant Summary collapse
- LOCATIONS_AVAILABLE =
the numbers below match the enum values on the database, do not change them!
{ 'zendesk' => { 'top_bar' => { 'id' => 1, 'orderable' => true }, 'nav_bar' => { 'id' => 2, 'orderable' => true }, 'ticket_sidebar' => { 'id' => 3, 'orderable' => true }, 'new_ticket_sidebar' => { 'id' => 4, 'orderable' => true }, 'user_sidebar' => { 'id' => 5, 'orderable' => true }, 'organization_sidebar' => { 'id' => 6, 'orderable' => true }, 'background' => { 'id' => 7, 'orderable' => false } }, 'zopim' => { 'chat_sidebar' => { 'id' => 8, 'orderable' => false } } }.freeze
Class Method Summary collapse
Class Method Details
.hosts ⇒ Object
20 21 22 |
# File 'lib/zendesk_apps_support/location.rb', line 20 def hosts LOCATIONS_AVAILABLE.keys end |
.names_for(host) ⇒ Object
24 25 26 |
# File 'lib/zendesk_apps_support/location.rb', line 24 def names_for(host) LOCATIONS_AVAILABLE[host.to_s].keys end |