Class: Confetti::Config::UrlScheme
- Inherits:
-
Object
- Object
- Confetti::Config::UrlScheme
- Defined in:
- lib/confetti/config/url_scheme.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#role ⇒ Object
Returns the value of attribute role.
-
#schemes ⇒ Object
Returns the value of attribute schemes.
Instance Method Summary collapse
-
#initialize(*args) ⇒ UrlScheme
constructor
A new instance of UrlScheme.
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
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/confetti/config/url_scheme.rb', line 4 def name @name end |
#role ⇒ Object
Returns the value of attribute role.
4 5 6 |
# File 'lib/confetti/config/url_scheme.rb', line 4 def role @role end |
#schemes ⇒ Object
Returns the value of attribute schemes.
4 5 6 |
# File 'lib/confetti/config/url_scheme.rb', line 4 def schemes @schemes end |