Class: GoAPI::Stages
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(data) ⇒ Stages
constructor
A new instance of Stages.
- #size ⇒ Object
Constructor Details
#initialize(data) ⇒ Stages
Returns a new instance of Stages.
13 14 15 |
# File 'lib/goapi.rb', line 13 def initialize(data) @data = data end |
Instance Method Details
#each(&block) ⇒ Object
17 18 19 |
# File 'lib/goapi.rb', line 17 def each(&block) @data.stages.each(&block) end |
#size ⇒ Object
21 22 23 |
# File 'lib/goapi.rb', line 21 def size @data.stages end |