Class: Fog::Network::Softlayer::Ip
- Inherits:
-
Model
- Object
- Model
- Fog::Network::Softlayer::Ip
- Defined in:
- lib/fog/softlayer/models/network/ip.rb
Instance Method Summary collapse
- #broadcast? ⇒ Boolean
- #create ⇒ Object
- #destroy ⇒ Object
- #gateway? ⇒ Boolean
-
#initialize(attributes) ⇒ Ip
constructor
A new instance of Ip.
- #network? ⇒ Boolean
- #reserved? ⇒ Boolean
- #save ⇒ Object
- #update ⇒ Object
Constructor Details
#initialize(attributes) ⇒ Ip
Returns a new instance of Ip.
25 26 27 28 |
# File 'lib/fog/softlayer/models/network/ip.rb', line 25 def initialize(attributes) @connection = attributes[:connection] super end |
Instance Method Details
#broadcast? ⇒ Boolean
48 49 50 |
# File 'lib/fog/softlayer/models/network/ip.rb', line 48 def broadcast? attribute[:broadcast] end |
#create ⇒ Object
35 36 37 |
# File 'lib/fog/softlayer/models/network/ip.rb', line 35 def create end |
#destroy ⇒ Object
43 44 45 46 |
# File 'lib/fog/softlayer/models/network/ip.rb', line 43 def destroy requires :id true end |
#gateway? ⇒ Boolean
52 53 54 |
# File 'lib/fog/softlayer/models/network/ip.rb', line 52 def gateway? attribute[:gateway] end |
#network? ⇒ Boolean
56 57 58 |
# File 'lib/fog/softlayer/models/network/ip.rb', line 56 def network? attribute[:network] end |
#reserved? ⇒ Boolean
60 61 62 |
# File 'lib/fog/softlayer/models/network/ip.rb', line 60 def reserved? attribute[:reserved] end |
#save ⇒ Object
30 31 32 33 |
# File 'lib/fog/softlayer/models/network/ip.rb', line 30 def save requires :subnet_id identity ? update : create end |
#update ⇒ Object
39 40 41 |
# File 'lib/fog/softlayer/models/network/ip.rb', line 39 def update self end |