Class: ReactorSDK::Resources::Rule

Inherits:
BaseResource show all
Defined in:
lib/reactor_sdk/resources/rule.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

#created_atString

Returns ISO8601 timestamp when the rule was created.

Returns:

  • (String)

    ISO8601 timestamp when the rule was created



25
# File 'lib/reactor_sdk/resources/rule.rb', line 25

attribute :created_at

#enabledBoolean

Returns Whether the rule is enabled.

Returns:

  • (Boolean)

    Whether the rule is enabled



22
# File 'lib/reactor_sdk/resources/rule.rb', line 22

attribute :enabled, as: :boolean

#inspectString

Returns Human-readable representation.

Returns:

  • (String)

    Human-readable representation



39
40
41
# File 'lib/reactor_sdk/resources/rule.rb', line 39

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

#nameString

Returns Display name of the rule.

Returns:

  • (String)

    Display name of the rule



19
# File 'lib/reactor_sdk/resources/rule.rb', line 19

attribute :name

#published_atString?

Returns ISO8601 timestamp when the rule was last published.

Returns:

  • (String, nil)

    ISO8601 timestamp when the rule was last published



31
# File 'lib/reactor_sdk/resources/rule.rb', line 31

attribute :published_at

#revised_atString?

Returns ISO8601 timestamp when the rule was last revised.

Returns:

  • (String, nil)

    ISO8601 timestamp when the rule was last revised



34
# File 'lib/reactor_sdk/resources/rule.rb', line 34

attribute :revised_at

#updated_atString

Returns ISO8601 timestamp when the rule was last updated.

Returns:

  • (String)

    ISO8601 timestamp when the rule was last updated



28
# File 'lib/reactor_sdk/resources/rule.rb', line 28

attribute :updated_at