Class: ReactorSDK::Resources::Environment

Inherits:
BaseResource show all
Defined in:
lib/reactor_sdk/resources/environment.rb

Instance Attribute Summary

Attributes inherited from BaseResource

#attributes, #id, #meta, #relationships, #type

Instance Method Summary collapse

Methods inherited from BaseResource

#==, #[], attribute, #initialize, #relationship_data, #relationship_id, #relationship_ids, #to_h

Constructor Details

This class inherits a constructor from ReactorSDK::Resources::BaseResource

Instance Method Details

#archivedBoolean

Returns Whether the environment is archived.

Returns:

  • (Boolean)

    Whether the environment is archived



26
# File 'lib/reactor_sdk/resources/environment.rb', line 26

attribute :archived, as: :boolean

#created_atString

Returns ISO8601 timestamp when the environment was created.

Returns:

  • (String)

    ISO8601 timestamp when the environment was created



32
# File 'lib/reactor_sdk/resources/environment.rb', line 32

attribute :created_at

#inspectString

Returns Human-readable representation.

Returns:

  • (String)

    Human-readable representation



40
41
42
# File 'lib/reactor_sdk/resources/environment.rb', line 40

def inspect
  "#<ReactorSDK::Resources::Environment id=#{id.inspect} name=#{name.inspect} stage=#{stage.inspect}>"
end

#nameString

Returns Display name of the environment.

Returns:

  • (String)

    Display name of the environment



20
# File 'lib/reactor_sdk/resources/environment.rb', line 20

attribute :name

#stageString

Returns Stage — one of: “development”, “staging”, “production”.

Returns:

  • (String)

    Stage — one of: “development”, “staging”, “production”



23
# File 'lib/reactor_sdk/resources/environment.rb', line 23

attribute :stage

#tokenString?

Returns Embed code for this environment.

Returns:

  • (String, nil)

    Embed code for this environment



29
# File 'lib/reactor_sdk/resources/environment.rb', line 29

attribute :token

#updated_atString

Returns ISO8601 timestamp when the environment was last updated.

Returns:

  • (String)

    ISO8601 timestamp when the environment was last updated



35
# File 'lib/reactor_sdk/resources/environment.rb', line 35

attribute :updated_at