Class: Threatstack::Policy

Inherits:
Object
  • Object
show all
Includes:
Serializable
Defined in:
lib/threatstack/entities/policy.rb

Instance Attribute Summary

Attributes included from Serializable

#raw

Instance Method Summary collapse

Methods included from Serializable

#attrs, included, #initialize, #method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Threatstack::Serializable

Instance Method Details

#rulesObject



8
9
10
# File 'lib/threatstack/entities/policy.rb', line 8

def rules
  raw['alert_policy'].map{ |r| Rule.new(r) }
end