class ZendeskAppsSupport::Manifest::LocationOptions

Constants

RUBY_TO_JSON

Attributes

location[R]

Public Class Methods

new(location, options) click to toggle source
# File lib/zendesk_apps_support/manifest/location_options.rb, line 24
def initialize(location, options)
  @location = location

  RUBY_TO_JSON.each do |ruby, json|
    instance_variable_set(:"@#{ruby}", options[json])
  end
  @legacy ||= @url == ZendeskAppsSupport::Manifest::LEGACY_URI_STUB
  @auto_load = options.fetch('autoLoad', true)
  @auto_hide ||= false
  @signed ||= false
end