Class: ReactorSDK::Resources::Rule
- Inherits:
-
BaseResource
- Object
- BaseResource
- ReactorSDK::Resources::Rule
- Defined in:
- lib/reactor_sdk/resources/rule.rb
Instance Attribute Summary
Attributes inherited from BaseResource
#attributes, #id, #meta, #relationships, #type
Instance Method Summary collapse
-
#created_at ⇒ String
ISO8601 timestamp when the rule was created.
-
#enabled ⇒ Boolean
Whether the rule is enabled.
-
#inspect ⇒ String
Human-readable representation.
-
#name ⇒ String
Display name of the rule.
-
#published_at ⇒ String?
ISO8601 timestamp when the rule was last published.
-
#revised_at ⇒ String?
ISO8601 timestamp when the rule was last revised.
-
#updated_at ⇒ String
ISO8601 timestamp when the rule was last updated.
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_at ⇒ String
Returns ISO8601 timestamp when the rule was created.
25 |
# File 'lib/reactor_sdk/resources/rule.rb', line 25 attribute :created_at |
#enabled ⇒ Boolean
Returns Whether the rule is enabled.
22 |
# File 'lib/reactor_sdk/resources/rule.rb', line 22 attribute :enabled, as: :boolean |
#inspect ⇒ String
Returns 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 |
#name ⇒ String
Returns Display name of the rule.
19 |
# File 'lib/reactor_sdk/resources/rule.rb', line 19 attribute :name |
#published_at ⇒ String?
Returns ISO8601 timestamp when the rule was last published.
31 |
# File 'lib/reactor_sdk/resources/rule.rb', line 31 attribute :published_at |
#revised_at ⇒ String?
Returns ISO8601 timestamp when the rule was last revised.
34 |
# File 'lib/reactor_sdk/resources/rule.rb', line 34 attribute :revised_at |
#updated_at ⇒ String
Returns ISO8601 timestamp when the rule was last updated.
28 |
# File 'lib/reactor_sdk/resources/rule.rb', line 28 attribute :updated_at |