Class: Fathom::Network
- Inherits:
-
Object
- Object
- Fathom::Network
- Extended by:
- Plugins
- Includes:
- Enumerable
- Defined in:
- lib/fathom/data/network.rb
Instance Method Summary collapse
-
#each(&block) ⇒ Object
(also: #each_variable)
= Instance Methods = ====================.
-
#initialize(attrs = {}) ⇒ Network
constructor
A new instance of Network.
Methods included from Plugins
Constructor Details
#initialize(attrs = {}) ⇒ Network
Returns a new instance of Network.
20 21 22 |
# File 'lib/fathom/data/network.rb', line 20 def initialize(attrs={}) @attributes = attrs end |
Instance Method Details
#each(&block) ⇒ Object Also known as: each_variable
Instance Methods =
27 28 29 30 31 |
# File 'lib/fathom/data/network.rb', line 27 def each(&block) variables.each do |variable| yield variable end end |