Class: Miu::Resources::Network

Inherits:
Base
  • Object
show all
Defined in:
lib/miu/resources/network.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_msgpack

Constructor Details

#initialize(options = {}) ⇒ Network

Returns a new instance of Network.



8
9
10
# File 'lib/miu/resources/network.rb', line 8

def initialize(options = {})
  @name = options[:name]
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/miu/resources/network.rb', line 6

def name
  @name
end

Instance Method Details

#to_hObject



12
13
14
# File 'lib/miu/resources/network.rb', line 12

def to_h
  super.merge({:name => @name})
end