Class: FlexiScale::Firewall
- Inherits:
-
Object
- Object
- FlexiScale::Firewall
- Defined in:
- lib/api/Flexiscale API.rb,
lib/api/Flexiscale APIAddons.rb
Overview
http://api.flexiscale.comFirewall
firewall_id - SOAP::SOAPInt
ip_address - SOAP::SOAPString
default_policy - SOAP::SOAPString
Instance Attribute Summary collapse
-
#default_policy ⇒ Object
Returns the value of attribute default_policy.
-
#firewall_id ⇒ Object
:nodoc:.
-
#ip_address ⇒ Object
Returns the value of attribute ip_address.
Instance Method Summary collapse
-
#initialize(firewall_id = nil, ip_address = nil, default_policy = nil) ⇒ Firewall
constructor
A new instance of Firewall.
- #to_handy_hash ⇒ Object
Constructor Details
#initialize(firewall_id = nil, ip_address = nil, default_policy = nil) ⇒ Firewall
Returns a new instance of Firewall.
97 98 99 100 101 |
# File 'lib/api/Flexiscale API.rb', line 97 def initialize(firewall_id = nil, ip_address = nil, default_policy = nil) @firewall_id = firewall_id @ip_address = ip_address @default_policy = default_policy end |
Instance Attribute Details
#default_policy ⇒ Object
Returns the value of attribute default_policy.
95 96 97 |
# File 'lib/api/Flexiscale API.rb', line 95 def default_policy @default_policy end |
#firewall_id ⇒ Object
:nodoc:
93 94 95 |
# File 'lib/api/Flexiscale API.rb', line 93 def firewall_id @firewall_id end |
#ip_address ⇒ Object
Returns the value of attribute ip_address.
94 95 96 |
# File 'lib/api/Flexiscale API.rb', line 94 def ip_address @ip_address end |
Instance Method Details
#to_handy_hash ⇒ Object
75 76 77 78 79 |
# File 'lib/api/Flexiscale APIAddons.rb', line 75 def to_handy_hash ::FlexiScale::attrs_to_hash(self, :ip_address, :default_policy).merge( :fxs_id => self.firewall_id ) end |