Class: Dryad::Core::Portal

Inherits:
Object
  • Object
show all
Defined in:
lib/dryad/core/portal.rb

Constant Summary collapse

DEFAULT_OPTIONS =
{
  :non_certifications => []
}

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = {})
  options = DEFAULT_OPTIONS.merge(opts)
  @id = SecureRandom.uuid
  @schema = options[:schema]
  @port = options[:port]
  @pattern = options[:pattern]
  @check = options[:check]
  @non_certifications = options[:non_certifications]
end

Instance Attribute Details

#checkObject

Returns the value of attribute check.



6
7
8
# File 'lib/dryad/core/portal.rb', line 6

def check
  @check
end

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/dryad/core/portal.rb', line 6

def id
  @id
end

#non_certificationsObject

Returns the value of attribute non_certifications.



6
7
8
# File 'lib/dryad/core/portal.rb', line 6

def non_certifications
  @non_certifications
end

#patternObject

Returns the value of attribute pattern.



6
7
8
# File 'lib/dryad/core/portal.rb', line 6

def pattern
  @pattern
end

#portObject

Returns the value of attribute port.



6
7
8
# File 'lib/dryad/core/portal.rb', line 6

def port
  @port
end

#schemaObject

Returns the value of attribute schema.



6
7
8
# File 'lib/dryad/core/portal.rb', line 6

def schema
  @schema
end