Class: Dryad::Core::Portal
- Inherits:
-
Object
- Object
- Dryad::Core::Portal
- Defined in:
- lib/dryad/core/portal.rb
Constant Summary collapse
- DEFAULT_OPTIONS =
{ :non_certifications => [] }
Instance Attribute Summary collapse
-
#check ⇒ Object
Returns the value of attribute check.
-
#id ⇒ Object
Returns the value of attribute id.
-
#non_certifications ⇒ Object
Returns the value of attribute non_certifications.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#port ⇒ Object
Returns the value of attribute port.
-
#schema ⇒ Object
Returns the value of attribute schema.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Portal
constructor
A new instance of Portal.
Constructor Details
#initialize(opts = {}) ⇒ Portal
Returns a new instance of Portal.
12 13 14 15 16 17 18 19 20 |
# File 'lib/dryad/core/portal.rb', line 12 def initialize(opts = {}) = DEFAULT_OPTIONS.merge(opts) @id = SecureRandom.uuid @schema = [:schema] @port = [:port] @pattern = [:pattern] @check = [:check] @non_certifications = [:non_certifications] end |
Instance Attribute Details
#check ⇒ Object
Returns the value of attribute check.
6 7 8 |
# File 'lib/dryad/core/portal.rb', line 6 def check @check end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/dryad/core/portal.rb', line 6 def id @id end |
#non_certifications ⇒ Object
Returns the value of attribute non_certifications.
6 7 8 |
# File 'lib/dryad/core/portal.rb', line 6 def non_certifications @non_certifications end |
#pattern ⇒ Object
Returns the value of attribute pattern.
6 7 8 |
# File 'lib/dryad/core/portal.rb', line 6 def pattern @pattern end |
#port ⇒ Object
Returns the value of attribute port.
6 7 8 |
# File 'lib/dryad/core/portal.rb', line 6 def port @port end |
#schema ⇒ Object
Returns the value of attribute schema.
6 7 8 |
# File 'lib/dryad/core/portal.rb', line 6 def schema @schema end |