Class: Helios::Videos::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/helios/videos/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



15
16
17
18
19
20
21
22
23
24
# File 'lib/helios/videos/configuration.rb', line 15

def initialize
  @processor = :cloudflare
  @require_signed_urls = true
  @admin_parent_controller = "ApplicationController"
  @cloudflare_account_id = ENV["CLOUDFLARE_ACCOUNT_ID"]
  @cloudflare_api_token = ENV["CLOUDFLARE_API_TOKEN"]
  @cloudflare_customer_subdomain = ENV["CLOUDFLARE_CUSTOMER_SUBDOMAIN"]
  @mux_token_id = ENV["MUX_TOKEN_ID"]
  @mux_token_secret = ENV["MUX_TOKEN_SECRET"]
end

Instance Attribute Details

#admin_parent_controllerObject

Returns the value of attribute admin_parent_controller.



4
5
6
# File 'lib/helios/videos/configuration.rb', line 4

def admin_parent_controller
  @admin_parent_controller
end

#cloudflare_account_idObject

Returns the value of attribute cloudflare_account_id.



4
5
6
# File 'lib/helios/videos/configuration.rb', line 4

def 
  @cloudflare_account_id
end

#cloudflare_api_tokenObject

Returns the value of attribute cloudflare_api_token.



4
5
6
# File 'lib/helios/videos/configuration.rb', line 4

def cloudflare_api_token
  @cloudflare_api_token
end

#cloudflare_customer_subdomainObject

Returns the value of attribute cloudflare_customer_subdomain.



4
5
6
# File 'lib/helios/videos/configuration.rb', line 4

def cloudflare_customer_subdomain
  @cloudflare_customer_subdomain
end

#mux_token_idObject

Returns the value of attribute mux_token_id.



4
5
6
# File 'lib/helios/videos/configuration.rb', line 4

def mux_token_id
  @mux_token_id
end

#mux_token_secretObject

Returns the value of attribute mux_token_secret.



4
5
6
# File 'lib/helios/videos/configuration.rb', line 4

def mux_token_secret
  @mux_token_secret
end

#processorObject

Returns the value of attribute processor.



4
5
6
# File 'lib/helios/videos/configuration.rb', line 4

def processor
  @processor
end

#require_signed_urlsObject

Returns the value of attribute require_signed_urls.



4
5
6
# File 'lib/helios/videos/configuration.rb', line 4

def require_signed_urls
  @require_signed_urls
end