Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Feb 20, 2010 8:31 pm 
Offline
Senior Newbie

Joined: Mon Feb 15, 2010 6:26 pm
Posts: 8
I'm just taking my first look at the Ruby gem for the Linode API in order to write some rake tasks. It looks like the data is stored in an OpenStruct - but unfortunately seems to overload the use of the attribute type (which returns the class for the object, not the data). I'm sure I could just modify the code - but I must not be the first person hitting this. Right?


Top
   
 Post subject:
PostPosted: Sat Feb 20, 2010 8:58 pm 
Offline
Senior Newbie

Joined: Mon Feb 15, 2010 6:26 pm
Posts: 8
For now I hacked the below line into the convert_item method of linode.rb:

item["linode_type"] = item["TYPE"] unless item["TYPE"].nil?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group