class CfScript::Target

Attributes

api_endpoint[R]
org[R]
space[RW]
user[R]

Public Class Methods

new(api_endpoint = '', org = '', space = '', user = nil) click to toggle source
# File lib/cf_script/object/target.rb, line 8
def initialize(api_endpoint = '', org = '', space = '', user = nil)
  @api_endpoint = api_endpoint
  @org          = org
  @space        = space
  @user         = user
end

Public Instance Methods

to_options() click to toggle source
# File lib/cf_script/object/target.rb, line 15
def to_options
  options = {}

  options[:o] = @org   if @org and not @org.empty?
  options[:s] = @space if @space and not @space.empty?

  options
end