Hi,
I'm new to ruby and am trying to do a project so I can learn ruby and
build a tool I need for my job.
I want to creat an array of hashes and then get the information out.
This is what I have right now:
this is in my getIssuesInFileter class:
@issues = @jira.getIssuesFromFilter(@key)
@output = Array.new(@issues.length, Hash.new)
@issues.each {
>fl>
@output << {:id => fl.id, :assignee => fl.assignee, :description
=> fl.description, :status => fl.status, :type => fl.type, :updated =>
fl.updated}
}
return @output
This is where I want to output my results
issueArray = @JiraClass.getIssuesInFilter(newFilterVal[0])
issueArray.each {
>iss>
iss.each {
>issSecD>
puts issSecD[:description], "\n"
}
}
I've tried to set up the hash like this {'id' => fl.id, ......
and then address it like this puts issSecD['id'], "\n"
But, I keep getting errors. Tried to find answers on google. Got
frustrated so I figured I'd ask the board.
Thanks in advance.
···
--
Posted via http://www.ruby-forum.com/.