jsullivandigs has quit [Remote host closed the connection]
__butch__ has quit [Quit: Leaving.]
jsullivandigs has joined #ruby-lang
vpretzel has quit [Remote host closed the connection]
vpretzel has joined #ruby-lang
vpretzel has quit [Remote host closed the connection]
<zenspider>
joevandyk: so stop running bundle install
elliotec has quit [Remote host closed the connection]
<ljarvis>
yorickpeterse: derp
sepp2k1 has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 260 seconds]
rivaler has quit [Quit: rivaler]
specialblend has quit [Quit: specialblend]
michaeldeol has quit [Quit: Computer has gone to sleep.]
michaeldeol has joined #ruby-lang
dingus_khan has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
michaeldeol has quit [Ping timeout: 265 seconds]
Cakey has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 260 seconds]
|jemc| has quit [Ping timeout: 250 seconds]
charliesome has joined #ruby-lang
calica has joined #ruby-lang
rivaler has joined #ruby-lang
<calica>
Hi. Having some trouble with restclient. It is spitting out "ext */*; q=0.5" and "ext application/xml" for each request on stdout. How do I silence it?
<zenspider>
you prolly need to comment out some of your puts lines. :P
arBmind has quit [Ping timeout: 260 seconds]
<zenspider>
looks like it outputs if you've got logging turned on.
<zenspider>
damn that code is ugly
benlovell has joined #ruby-lang
michaeldeol has joined #ruby-lang
<calica>
zenspider: how do I turn off logging? My snippet is: "resp = RestClient.post url, json". That's the only part touching RestClient in the whole script (excluding require)
shinnya has quit [Ping timeout: 250 seconds]
<zenspider>
I don't have an answer for you. I suggest you go read the code
<calica>
thanks.
benlovell has quit [Ping timeout: 245 seconds]
michaeldeol has quit [Ping timeout: 260 seconds]
aleatorik has joined #ruby-lang
ikrima has joined #ruby-lang
Johz has quit [Quit: Leaving]
eoinkelly has left #ruby-lang [#ruby-lang]
nertzy2 has joined #ruby-lang
tkuchiki has joined #ruby-lang
vlad_starkov has joined #ruby-lang
ikrima has quit [Ping timeout: 272 seconds]
tylersmith has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Ping timeout: 272 seconds]
ruby-lang881 has joined #ruby-lang
ikrima has joined #ruby-lang
<ruby-lang881>
hi everybody
jperry_ has joined #ruby-lang
prc has quit [Ping timeout: 260 seconds]
jperry_ has quit [Client Quit]
|jemc| has joined #ruby-lang
ruby-lang881 has quit [Ping timeout: 245 seconds]
jperry_ has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
jtw has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
nertzy2 has quit [Quit: This computer has gone to sleep]
jamo has quit [Disconnected by services]
jamo__ is now known as Jamo
havenwood has quit []
jtw has quit []
rivaler has quit [Quit: rivaler]
jsullivandigs has joined #ruby-lang
dingus_khan has joined #ruby-lang
cnivolle has joined #ruby-lang
mistym has quit [Ping timeout: 245 seconds]
jsullivandigs has quit [Remote host closed the connection]
mistym has joined #ruby-lang
bantic has quit [Quit: bantic]
Cakey has joined #ruby-lang
rue|w_ has joined #ruby-lang
Onixs_ has joined #ruby-lang
matled- has joined #ruby-lang
mistym_ has joined #ruby-lang
tonni_ has joined #ruby-lang
ledestin_ has joined #ruby-lang
agrinb_ has joined #ruby-lang
perryh has joined #ruby-lang
snk_ has joined #ruby-lang
hagebake has joined #ruby-lang
EvilJStoker_ has joined #ruby-lang
yellow5_ has joined #ruby-lang
ahf_ has joined #ruby-lang
ahf_ has joined #ruby-lang
yellow5 has quit [Ping timeout: 260 seconds]
yellow5_ is now known as yellow5
Atw has joined #ruby-lang
saarinen has quit [Quit: saarinen]
TheMoonMaster_ has joined #ruby-lang
tonni has quit [Read error: Connection reset by peer]
Caius has quit [Ping timeout: 260 seconds]
Onixs has quit [Ping timeout: 260 seconds]
mistym has quit [Ping timeout: 260 seconds]
crankhar1er has quit [Ping timeout: 260 seconds]
EvilJStoker has quit [Ping timeout: 260 seconds]
perry has quit [Ping timeout: 260 seconds]
joonty has quit [Ping timeout: 260 seconds]
rue_XIW has quit [Ping timeout: 260 seconds]
marcofernandez has quit [Ping timeout: 260 seconds]
Kabaka has quit [Ping timeout: 260 seconds]
go|dfish has quit [Ping timeout: 260 seconds]
ledestin has quit [Ping timeout: 260 seconds]
kirin` has quit [Ping timeout: 260 seconds]
Gaelane has quit [Ping timeout: 260 seconds]
[dmp] has quit [Ping timeout: 260 seconds]
Caius has joined #ruby-lang
michael_imac has joined #ruby-lang
marcofernandez has joined #ruby-lang
linc01n_ has joined #ruby-lang
RoxasShadowRS has quit [Quit: Leaving]
ledestin_ is now known as ledestin
Caius has quit [Changing host]
Caius has joined #ruby-lang
joonty has joined #ruby-lang
EvilJStoker_ is now known as EvilJStoker
fumduq- has joined #ruby-lang
_dumfrie- has joined #ruby-lang
ohsix_ has joined #ruby-lang
go|dfish has joined #ruby-lang
retro|cz has quit [Ping timeout: 250 seconds]
crankhar1er has joined #ruby-lang
cnivolle_ has joined #ruby-lang
fumduq has quit [Ping timeout: 260 seconds]
lsumner has joined #ruby-lang
fumduq- is now known as fumduq
hackeron_ has joined #ruby-lang
meise has quit [Ping timeout: 260 seconds]
gianlucaw has quit [Ping timeout: 260 seconds]
existensil has quit [Ping timeout: 260 seconds]
hagabaka has quit [*.net *.split]
esad has quit [*.net *.split]
snk has quit [*.net *.split]
badeball has quit [*.net *.split]
hackeron has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
matled has quit [*.net *.split]
jarib has quit [*.net *.split]
Senjai has quit [*.net *.split]
ohsix has quit [*.net *.split]
Thana[work] has quit [*.net *.split]
agrinb has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
_dumfries has quit [*.net *.split]
oetjenj has quit [*.net *.split]
marcel has quit [*.net *.split]
_rgn has quit [*.net *.split]
bahar has quit [*.net *.split]
crazysim has quit [*.net *.split]
Jamo_ has quit [*.net *.split]
tap has quit [*.net *.split]
FiXato has quit [*.net *.split]
paul_k has quit [*.net *.split]
redgetan_ has quit [*.net *.split]
ahf has quit [*.net *.split]
nXqd has joined #ruby-lang
ohsix_ has quit [Client Quit]
mistym has joined #ruby-lang
ahf_ is now known as ahf
yxhuvud has quit [Ping timeout: 260 seconds]
DevDoo_ has joined #ruby-lang
oetjenj_ has joined #ruby-lang
FlyingLeap_ has joined #ruby-lang
bahar has joined #ruby-lang
existensil has joined #ruby-lang
matled has joined #ruby-lang
ikrima_ has joined #ruby-lang
ohsix has joined #ruby-lang
[dmp] has joined #ruby-lang
crazysim has joined #ruby-lang
[dmp] has quit [Changing host]
[dmp] has joined #ruby-lang
Jamo_ has joined #ruby-lang
hackeron_ has quit [Ping timeout: 260 seconds]
robbyoconnor has quit [Max SendQ exceeded]
perryh has quit [*.net *.split]
mistym_ has quit [*.net *.split]
matled- has quit [*.net *.split]
cnivolle has quit [*.net *.split]
|jemc| has quit [*.net *.split]
ikrima has quit [*.net *.split]
aleatorik has quit [*.net *.split]
tpope has quit [*.net *.split]
dik_dak has quit [*.net *.split]
x0f has quit [*.net *.split]
DevDoo has quit [*.net *.split]
Kero_ has quit [*.net *.split]
ruskie has quit [*.net *.split]
nXqd_ has quit [*.net *.split]
linc01n has quit [*.net *.split]
FlyingLeap has quit [*.net *.split]
amerine has quit [*.net *.split]
waxjar has quit [*.net *.split]
zz_dlu has quit [*.net *.split]
kwando has quit [*.net *.split]
Rylee has quit [*.net *.split]
chris2 has quit [*.net *.split]
dabradley has quit [*.net *.split]
crazysim has quit [Excess Flood]
matled has quit [Remote host closed the connection]
kwando_ has joined #ruby-lang
erichmenge has quit [Ping timeout: 260 seconds]
marcel- has joined #ruby-lang
r0bby_ has joined #ruby-lang
r0bby_ has quit [Changing host]
r0bby_ has joined #ruby-lang
waxjar has joined #ruby-lang
erichmenge has joined #ruby-lang
zz_gianlucadv has joined #ruby-lang
yxhuvud has joined #ruby-lang
Kabaka has joined #ruby-lang
diegoviola has quit [Ping timeout: 260 seconds]
chris2 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
zenspider has quit [Ping timeout: 260 seconds]
rondale_sc has quit [Ping timeout: 260 seconds]
oetjenj_ is now known as oetjenj
marcel- is now known as marcel
mistym has joined #ruby-lang
_rgn has joined #ruby-lang
LuvLinuxOS has joined #ruby-lang
zz_dlu has joined #ruby-lang
shado has quit [Ping timeout: 265 seconds]
dbussink has quit [Ping timeout: 260 seconds]
nirix has quit [Ping timeout: 265 seconds]
redgetan has joined #ruby-lang
existensil_ has joined #ruby-lang
diegoviola has joined #ruby-lang
Thanatermesis has joined #ruby-lang
Kabaka has quit [Ping timeout: 265 seconds]
erichmenge has quit [Ping timeout: 265 seconds]
LuvLinuxOS has quit [Max SendQ exceeded]
Jamo_ has quit [Ping timeout: 265 seconds]
tpope has joined #ruby-lang
nirix has joined #ruby-lang
FlyingLeap has joined #ruby-lang
FlyingLeap has quit [Changing host]
FlyingLeap has joined #ruby-lang
dbussink has joined #ruby-lang
Cakey has quit [Ping timeout: 260 seconds]
linc01n has joined #ruby-lang
Asher1 has joined #ruby-lang
JoshuaPaling has joined #ruby-lang
crazysim has joined #ruby-lang
Coincidental has joined #ruby-lang
ohsix_ has joined #ruby-lang
wallerdev has quit [Ping timeout: 265 seconds]
crazysim has quit [Max SendQ exceeded]
crazysim has joined #ruby-lang
bahar_ has joined #ruby-lang
r0bby_ has quit [Ping timeout: 259 seconds]
gfarfl has quit [Ping timeout: 259 seconds]
joonty_ has joined #ruby-lang
[dmp] has quit [*.net *.split]
ohsix has quit [*.net *.split]
ikrima_ has quit [*.net *.split]
existensil has quit [*.net *.split]
FlyingLeap_ has quit [*.net *.split]
bahar has quit [*.net *.split]
nXqd has quit [*.net *.split]
go|dfish has quit [*.net *.split]
joonty has quit [*.net *.split]
marcofernandez has quit [*.net *.split]
linc01n_ has quit [*.net *.split]
michael_imac has quit [*.net *.split]
_dumfrie- has quit [*.net *.split]
Caius has quit [*.net *.split]
Asher has quit [*.net *.split]
crazysim has quit [Excess Flood]
crazysim has joined #ruby-lang
marcel has quit [Ping timeout: 260 seconds]
marcel_ has joined #ruby-lang
go|dfish has joined #ruby-lang
marcel_ is now known as marcel
zenspider has joined #ruby-lang
Rylee has joined #ruby-lang
zz_dlu has quit [Ping timeout: 260 seconds]
danijoo has quit [Read error: Connection reset by peer]
_dumfries has joined #ruby-lang
matled has joined #ruby-lang
FlyingLeap has quit [Ping timeout: 260 seconds]
GaelanAintAround has joined #ruby-lang
danijoo has joined #ruby-lang
badeball has joined #ruby-lang
kirin` has joined #ruby-lang
FlyingLeap has joined #ruby-lang
ohsix_ has quit [Quit: leaving]
zz_dlu has joined #ruby-lang
ohsix has joined #ruby-lang
Senjai has joined #ruby-lang
erichmenge has joined #ruby-lang
cnivolle_ has quit [Remote host closed the connection]
amclain has joined #ruby-lang
perry has joined #ruby-lang
Kero has joined #ruby-lang
x0f has joined #ruby-lang
Caius has joined #ruby-lang
hackeron has joined #ruby-lang
ikrima has joined #ruby-lang
kwando has joined #ruby-lang
freedrull has joined #ruby-lang
perry has joined #ruby-lang
x0f has joined #ruby-lang
perry has quit [Changing host]
x0f has quit [Changing host]
Caius has quit [Changing host]
Caius has joined #ruby-lang
kwando_ has quit [Ping timeout: 260 seconds]
paul_k has joined #ruby-lang
Kero is now known as Guest62528
FiXato has joined #ruby-lang
ItSANgo_ has joined #ruby-lang
jarib has joined #ruby-lang
jarib has quit [Changing host]
jarib has joined #ruby-lang
linc01n has quit [Ping timeout: 260 seconds]
Xzyx987X has joined #ruby-lang
Atmaweapn has joined #ruby-lang
ItSANg___ has quit [Ping timeout: 260 seconds]
alakran has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
Olipro has quit [Max SendQ exceeded]
Atmaweapn has quit [Client Quit]
Kabaka has joined #ruby-lang
Onixs has joined #ruby-lang
amclain_ has joined #ruby-lang
meise has joined #ruby-lang
alakra has quit [Ping timeout: 260 seconds]
erichmenge has quit [Ping timeout: 260 seconds]
bahar_ is now known as bahar
LuvLinuxOS has joined #ruby-lang
ljarvis has quit [Remote host closed the connection]
lsumner has quit [Ping timeout: 260 seconds]
linc01n has joined #ruby-lang
hagabaka has joined #ruby-lang
maloik_ has joined #ruby-lang
cub1c_ has joined #ruby-lang
ahf_ has joined #ruby-lang
ahf_ has quit [Changing host]
ahf_ has joined #ruby-lang
shado has joined #ruby-lang
erichmenge has joined #ruby-lang
nXqd_ has joined #ruby-lang
goatish_mound has joined #ruby-lang
jsullivandigs has joined #ruby-lang
certaint1 has joined #ruby-lang
perryh has joined #ruby-lang
rahul_j has joined #ruby-lang
michaeldeol has joined #ruby-lang
Olipro has joined #ruby-lang
Coincide_ has joined #ruby-lang
Asher1 is now known as Asher
amclain has quit [Ping timeout: 260 seconds]
perry has quit [Ping timeout: 260 seconds]
Caius has quit [Ping timeout: 260 seconds]
perryh is now known as perry
paul_k has quit [Ping timeout: 260 seconds]
Guest62528 has quit [Ping timeout: 260 seconds]
bahar has quit [Ping timeout: 260 seconds]
dhoss_ has joined #ruby-lang
tdy_ has joined #ruby-lang
bahar has joined #ruby-lang
Coincidental has quit [*.net *.split]
fumduq has quit [*.net *.split]
ahf has quit [*.net *.split]
hagebake has quit [*.net *.split]
yellow5 has quit [*.net *.split]
ledestin has quit [*.net *.split]
Onixs_ has quit [*.net *.split]
Atw has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
rsl has quit [*.net *.split]
vondruch has quit [*.net *.split]
pico-pete has quit [*.net *.split]
DouweM has quit [*.net *.split]
maloik has quit [*.net *.split]
certainty has quit [*.net *.split]
cub1c has quit [*.net *.split]
tdy has quit [*.net *.split]
Xzyx987X_ has quit [*.net *.split]
lucas has quit [*.net *.split]
dhoss has quit [*.net *.split]
crazysim has quit [Excess Flood]
ahf_ is now known as ahf
lucas has joined #ruby-lang
tdy_ has quit [Client Quit]
pico-pete has joined #ruby-lang
crazysim has joined #ruby-lang
tdy has joined #ruby-lang
gfarfl has joined #ruby-lang
michaeldeol has quit [Ping timeout: 248 seconds]
benlovell has joined #ruby-lang
Jamo_ has joined #ruby-lang
fumduq has joined #ruby-lang
seanlinsley has joined #ruby-lang
tap has joined #ruby-lang
kwando_ has joined #ruby-lang
x0f_ has joined #ruby-lang
yellow5 has joined #ruby-lang
CaptainJet has joined #ruby-lang
ruskie has joined #ruby-lang
Kero_ has joined #ruby-lang
benlovell has quit [Ping timeout: 248 seconds]
fumduq has quit [Ping timeout: 260 seconds]
kwando has quit [Ping timeout: 260 seconds]
x0f has quit [Ping timeout: 260 seconds]
Caius has joined #ruby-lang
Caius has quit [Changing host]
Caius has joined #ruby-lang
paul_k has joined #ruby-lang
d2biG has joined #ruby-lang
crazysim_ has joined #ruby-lang
dRbiG has quit [Ping timeout: 265 seconds]
[dmp] has joined #ruby-lang
[dmp] has quit [Changing host]
[dmp] has joined #ruby-lang
crazysim has quit [Excess Flood]
fumduq has joined #ruby-lang
crazysim_ is now known as crazysim
Coincide_ has quit [Remote host closed the connection]
mistym_ has joined #ruby-lang
michael_mbp has joined #ruby-lang
michaeldeol has joined #ruby-lang
cout_ has joined #ruby-lang
dhoss has joined #ruby-lang
Olipro has quit [Max SendQ exceeded]
vondruch has joined #ruby-lang
seanlinsley has quit [Quit: √]
mistym has quit [Ping timeout: 260 seconds]
cout has quit [Ping timeout: 260 seconds]
dhoss_ has quit [Ping timeout: 260 seconds]
yxhuvud has quit [Ping timeout: 260 seconds]
bahar has quit [Ping timeout: 272 seconds]
Olipro has joined #ruby-lang
michaeldeol has quit [Ping timeout: 260 seconds]
michaeldeol has joined #ruby-lang
Andrevan has joined #ruby-lang
vlad_starkov has joined #ruby-lang
yxhuvud has joined #ruby-lang
oetjenj has quit [Ping timeout: 260 seconds]
dingus_khan has quit [Remote host closed the connection]
michaeldeol has left #ruby-lang [#ruby-lang]
oetjenj has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 260 seconds]
jperry_ has quit [Quit: jperry_]
bahar has joined #ruby-lang
havenwood has joined #ruby-lang
mistym_ is now known as mistym
seanlinsley has joined #ruby-lang
rahul_j has quit [Ping timeout: 245 seconds]
leroy_ has joined #ruby-lang
<leroy_>
getting a brew error, wondering if someone can help
dingus_khan has joined #ruby-lang
<leroy_>
my error message
<leroy_>
mbp:~ leroy$ brew update /usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory /usr/local/bin/brew: line 21: /usr/local/Library/brew.rb: Undefined error: 0
marcofernandez has joined #ruby-lang
amclain_ has quit [Read error: Connection reset by peer]
jclrb|away has quit [Read error: Operation timed out]
hanikazmi has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
dingus_khan has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby-lang
momomomomo has quit [Ping timeout: 252 seconds]
phansch has quit [Quit: Leaving]
ratmav has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
dingus_khan has joined #ruby-lang
x0f has joined #ruby-lang
tonni has joined #ruby-lang
x0f_ has quit [Ping timeout: 260 seconds]
cnivolle has quit [Remote host closed the connection]
ikrima has joined #ruby-lang
jhass is now known as jhass|off
arooni-mobile has joined #ruby-lang
jamto11 has quit []
danijoo_ has quit [Read error: Connection reset by peer]
cnivolle has joined #ruby-lang
danijoo has joined #ruby-lang
deception has quit [Quit: Goodbye]
mistym has quit [Remote host closed the connection]
jsrn has quit [Quit: Leaving]
elliotec has joined #ruby-lang
Coincidental has joined #ruby-lang
elliotec has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
<dingus_khan>
i can't seem to figure out how to create a hash from headers in a CSV as the keys and the rows as values--would i just specify the first row as the keys and skip using the headers?
ratmav has quit [Quit: Leaving]
<centrx>
dingus_khan, What is wrong with the headers option?
<dingus_khan>
centrx: i don't if i'm just retarded or what, but i can't think of how to use the headers as the keys in the constructor loop
havenwood has quit [Remote host closed the connection]
<dingus_khan>
i think i designed that improperly, as i want to be able to access individual attributes of each hotel, but instead i've created an array of Hotel objects, and i'm confused about selecting out individual attributes from each object while it's in that collection
vlad_sta_ has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
<dingus_khan>
the goal i have in mind is to select out individual names, ratings, and rates based on customer criteria, but my collection is wrong, i think
<centrx>
dingus_khan, Use CSV.new with the :headers option
<dingus_khan>
i guess what i'm asking is, should i separate out the data accessing that i put in that module and not link them with the extend?
yfeldblum has quit [Read error: Connection reset by peer]
<dingus_khan>
centrx: isn't that when creating a CSV though?
elliotec has joined #ruby-lang
yfeldblum has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
hahuang61 has joined #ruby-lang
yfeldblum has joined #ruby-lang
mistym has joined #ruby-lang
<dingus_khan>
wait no, just found the method now
<centrx>
dingus_khan, CSV is an object that can read or write CSVs. CSV.new merely creates the object. You can also pass these options to foreach, but the options are documented in the ::new part of the CSV documentation
rubyQuestion has joined #ruby-lang
hahuang65 has quit [Ping timeout: 252 seconds]
<centrx>
You may the csv object to return the headers in the way that you want, as opposed to implicitly creating it with foreach
<dingus_khan>
centrx: got it, checking now, does what i'm asking make sense otherwise? i worry i'm not framing the question properly
<centrx>
dingus_khan, You can select out Hotels based on their attributes with Array#select
<dingus_khan>
trying that now
shinnya has joined #ruby-lang
<centrx>
dingus_khan, For better performance, you may wish to create various Hashes which have the various attribute values as their keys. You can do that with Array#group_by
elliotec has quit [Ping timeout: 245 seconds]
vlad_sta_ has quit [Remote host closed the connection]
<dingus_khan>
centrx: ah yes, that's the heart of what i'm trying to accomplish, thank you! i wanted this to be as efficiently executed as possible while following the best design principles i understand at this point
<centrx>
Excellent!
rivaler has joined #ruby-lang
<dingus_khan>
centrx: so just to clarify (still a beginner), would i start over with the CSV parsing to create a different data structure (hashes), or work with the array of Hotel objects as it is? is there a benefit to having an array of specific Hotel objects like that, or is it burdensome beyond necessity?
<dingus_khan>
centrx: that's because of how the foreach method functions, right? the .new method creates hashes though, so i could create CSV objects that are hashes from the file's contents, if i'm reading that correctly?
elliotec has quit [Ping timeout: 245 seconds]
<centrx>
rubyQuestion, % interpolates those variables into the string according to the types specified by the % formats within the string
Atw has joined #ruby-lang
<centrx>
dingus_khan, As your code is written now, CSV creates an Array of Hashes, where each row is a hash
<rubyQuestion>
centrx, so the 5.2 is telling ruby that x is a float and y is a string hence the %s for string?
<centrx>
dingus_khan, This is different than indexing/grouping by attributes in order to select out hotels by criteria
<centrx>
rubyQuestion, %5.2f interpolates a float which has a total width of 5 digits and a precision of 2 digits past the decimal point
<dingus_khan>
centrx: that's odd, because looking at the array of Hotel objects in pry makes it look like they're just objects with the instance variables and their associated values..?
<centrx>
dingus_khan, That is what you created
<centrx>
dingus_khan, CSV rows are either arrays or hashes