Class: Confetti::Config::UrlScheme

Inherits:
Object
  • Object
show all
Defined in:
lib/confetti/config/url_scheme.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ UrlScheme

Returns a new instance of UrlScheme.



6
7
8
9
10
11
# File 'lib/confetti/config/url_scheme.rb', line 6

def initialize *args
  scheme_arg = args.shift
  @schemes = scheme_arg.nil? ? [] : scheme_arg
  @name = args.shift
  @role = args.shift
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/confetti/config/url_scheme.rb', line 4

def name
  @name
end

#roleObject

Returns the value of attribute role.



4
5
6
# File 'lib/confetti/config/url_scheme.rb', line 4

def role
  @role
end

#schemesObject

Returns the value of attribute schemes.



4
5
6
# File 'lib/confetti/config/url_scheme.rb', line 4

def schemes
  @schemes
end