Sha256: 0933d89330b3b916cdc759eb3cbe1e0fd8b06d44212c05b1a06f1dd4996f92ed
Contents?: true
Size: 773 Bytes
Versions: 2
Compression:
Stored size: 773 Bytes
Contents
module Eleyo module API class Nav attr_accessor :auth def initialize(options = {}) self.auth = options[:auth] raise API::InitializerError.new(:auth, "can't be blank") if self.auth.nil? raise API::InitializerError.new(:auth, "must be of class type Eleyo::API::Auth") if !self.auth.is_a?(Eleyo::API::Auth) end def javascript options = { district: self.auth.district_subdomain, login: { current_uuid: self.auth.current_user_uuid, client_id: self.auth.client_id, redirect_uri: self.auth.redirect_uri, callback: self.auth.js_callback } } return %(new SwitchBoardIONav(#{options.to_json});) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eleyo-1.2.1 | lib/eleyo/api/nav.rb |
eleyo-1.2.0 | lib/eleyo/api/nav.rb |