Class: Fog::Network::StormOnDemand::Ruleset

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/storm_on_demand/models/network/ruleset.rb

Instance Attribute Summary

Attributes inherited from Model

#collection, #service

Instance Method Summary collapse

Methods inherited from Model

#inspect, #reload, #symbolize_keys, #to_json, #wait_for

Methods included from Attributes::ClassMethods

#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes

Methods included from Core::DeprecatedConnectionAccessors

#connection, #connection=, #prepare_service_value

Methods included from Attributes::InstanceMethods

#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #persisted?, #requires, #requires_one

Constructor Details

#initialize(attributes = {}) ⇒ Ruleset

Returns a new instance of Ruleset.



14
15
16
# File 'lib/fog/storm_on_demand/models/network/ruleset.rb', line 14

def initialize(attributes={})
  super
end

Instance Method Details

#update(rules) ⇒ Object



18
19
20
21
22
# File 'lib/fog/storm_on_demand/models/network/ruleset.rb', line 18

def update(rules)
  requires :ruleset
  service.update_ruleset(:ruleset => ruleset, :rules => rules)
  true
end