LinuxMCE Forums
June 20, 2013, 01:31:36 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: Trying to get Parent ID in Ruby  (Read 691 times)
ddamron
Alumni
wants to work for LinuxMCE
*
Posts: 962



View Profile WWW
« on: January 15, 2008, 04:47:04 pm »

I can't seem to get the parent device from ANY object in ruby.
device_.parent_ returns nil

device_.childdevices_[cmd.devidto_].parent_ SHOULD  report the device_.devid_
It's reporting nil

Is this not correct?

Thanks,

Dan
Logged

The only intuitive interface is the nipple.  After that it's all learned.
My other computer is your windows box.
I'm out of my mind.  Back in 5 minutes.
Q:  What's Red and smells like blue paint?

A:  Red Paint.
ddamron
Alumni
wants to work for LinuxMCE
*
Posts: 962



View Profile WWW
« Reply #1 on: January 15, 2008, 04:58:17 pm »

another piece of tidbit:
parent_.inspect kills the device...
Logged

The only intuitive interface is the nipple.  After that it's all learned.
My other computer is your windows box.
I'm out of my mind.  Back in 5 minutes.
Q:  What's Red and smells like blue paint?

A:  Red Paint.
ddamron
Alumni
wants to work for LinuxMCE
*
Posts: 962



View Profile WWW
« Reply #2 on: January 15, 2008, 06:04:36 pm »

reported in mantis:
http://mantis.linuxmce.org/view.php?id=3820
Logged

The only intuitive interface is the nipple.  After that it's all learned.
My other computer is your windows box.
I'm out of my mind.  Back in 5 minutes.
Q:  What's Red and smells like blue paint?

A:  Red Paint.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!