Author Topic: Trying to get Parent ID in Ruby  (Read 3328 times)

ddamron

  • Alumni
  • wants to work for LinuxMCE
  • *
  • Posts: 962
    • View Profile
    • My LinuxMCE User Page
Trying to get Parent ID in Ruby
« 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
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
    • My LinuxMCE User Page
Re: Trying to get Parent ID in Ruby
« Reply #1 on: January 15, 2008, 04:58:17 pm »
another piece of tidbit:
parent_.inspect kills the device...
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
    • My LinuxMCE User Page
Re: Trying to get Parent ID in Ruby
« Reply #2 on: January 15, 2008, 06:04:36 pm »
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.