Class: EySecrets::Environment

Inherits:
Struct
  • Object
show all
Defined in:
lib/ey_secrets/models/environment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEnvironment

Returns a new instance of Environment.



3
4
5
6
7
8
# File 'lib/ey_secrets/models/environment.rb', line 3

def initialize(*)
  super
  instances.each do |instance|
    instance.environment = self
  end
end

Instance Attribute Details

#instancesObject

Returns the value of attribute instances

Returns:

  • (Object)

    the current value of instances



2
3
4
# File 'lib/ey_secrets/models/environment.rb', line 2

def instances
  @instances
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



2
3
4
# File 'lib/ey_secrets/models/environment.rb', line 2

def name
  @name
end