Class: SfCli::Sf::Org::Display::ConnectionInfo

Inherits:
Struct
  • Object
show all
Defined in:
lib/sf_cli/sf/org/display.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token

Returns:

  • (Object)

    the current value of access_token



3
4
5
# File 'lib/sf_cli/sf/org/display.rb', line 3

def access_token
  @access_token
end

#aliasObject

Returns the value of attribute alias

Returns:

  • (Object)

    the current value of alias



3
4
5
# File 'lib/sf_cli/sf/org/display.rb', line 3

def alias
  @alias
end

#api_versionObject

Returns the value of attribute api_version

Returns:

  • (Object)

    the current value of api_version



3
4
5
# File 'lib/sf_cli/sf/org/display.rb', line 3

def api_version
  @api_version
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



3
4
5
# File 'lib/sf_cli/sf/org/display.rb', line 3

def id
  @id
end

#instance_urlObject

Returns the value of attribute instance_url

Returns:

  • (Object)

    the current value of instance_url



3
4
5
# File 'lib/sf_cli/sf/org/display.rb', line 3

def instance_url
  @instance_url
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



3
4
5
# File 'lib/sf_cli/sf/org/display.rb', line 3

def status
  @status
end

#user_nameObject

Returns the value of attribute user_name

Returns:

  • (Object)

    the current value of user_name



3
4
5
# File 'lib/sf_cli/sf/org/display.rb', line 3

def user_name
  @user_name
end

Instance Method Details

#connected?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/sf_cli/sf/org/display.rb', line 4

def connected?
  status == 'Connected'
end