Class: CfScript::Space

Inherits:
Object
  • Object
show all
Defined in:
lib/cf_script/object/space.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, org = nil, apps = [], domains = [], services = [], security_groups = []) ⇒ Space

Returns a new instance of Space.



9
10
11
12
13
14
15
16
# File 'lib/cf_script/object/space.rb', line 9

def initialize(name, org = nil, apps = [], domains = [], services = [], security_groups = [])
  @name            = name
  @org             = org
  @apps            = apps
  @domains         = domains
  @services        = services
  @security_groups = security_groups
end

Instance Attribute Details

#appsObject (readonly)

Returns the value of attribute apps.



4
5
6
# File 'lib/cf_script/object/space.rb', line 4

def apps
  @apps
end

#domainsObject (readonly)

Returns the value of attribute domains.



5
6
7
# File 'lib/cf_script/object/space.rb', line 5

def domains
  @domains
end

#nameObject (readonly)

Returns the value of attribute name.



2
3
4
# File 'lib/cf_script/object/space.rb', line 2

def name
  @name
end

#orgObject (readonly)

Returns the value of attribute org.



3
4
5
# File 'lib/cf_script/object/space.rb', line 3

def org
  @org
end

#security_groupsObject (readonly)

Returns the value of attribute security_groups.



7
8
9
# File 'lib/cf_script/object/space.rb', line 7

def security_groups
  @security_groups
end

#servicesObject (readonly)

Returns the value of attribute services.



6
7
8
# File 'lib/cf_script/object/space.rb', line 6

def services
  @services
end