Created
November 10, 2011 14:48
-
-
Save pbonnell/1355014 to your computer and use it in GitHub Desktop.
SircleObjects on local VS. Heroku :
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOCAL DEV: | |
ruby-1.9.2-p290 :001 > p = Sircle.get_products(Sircle::UserZero)[0] | |
=> {"Brand"=>{"ExternalLoginUserName"=>nil, "ID"=>4, "Logo"=>"http://staging2.sircleadvertising.com/SampleImage/ITO/16?h=J8th3fK7", "Name"=>"Lift Lab"}, "ID"=>1, "ImageURL"=>"http://staging2.sircleadvertising.com/SampleImage/ITO/28?h=J8th3fK7", "Name"=>"Facial Cream", "SampleIDs"=>[], "Subcategory"=>{"Category"=>{"ID"=>1, "Name"=>"Bath & Body"}, "ID"=>8, "Name"=>"Deodorant"}} | |
ruby-1.9.2-p290 :002 > | |
HEROKU CONSOLE: | |
>> p = Sircle.get_products(Sircle::UserZero)[0] | |
=> #<SircleProduct:0x00000006bf4b80 @attributes=<#Hashie::Mash brand=<#Hashie::Mash external_login_user_name=nil id=4 logo="http://staging2.sircleadvertising.com/SampleImage/ITO/16?h=J8th3fK7" name="Lift Lab"> id=1 image_url="http://staging2.sircleadvertising.com/SampleImage/ITO/28?h=J8th3fK7" name="Facial Cream" sample_i_ds=[] subcategory=<#Hashie::Mash category=<#Hashie::Mash id=1 name="Bath & Body"> id=8 name="Deodorant">>> | |
>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment