# Creating run time objects

**URL:** <https://www.ruby-forum.com/t/creating-run-time-objects/155215>\
**Category:** Rails\
**Created:** [December 9, 2008, 2:34pm UTC](https://www.ruby-forum.com/t/creating-run-time-objects/155215 "2008-12-09T14:34:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [December 9, 2008, 2:34pm UTC](https://www.ruby-forum.com/t/creating-run-time-objects/155215/1 "2008-12-09T14:34:13Z")

</div>

Hi,

I have a user and album object. Depending on the condition I want to  
create a new object which have some values from user object and some  
from album object.  
Is this possible?  
Can anyone help me?

Thanks & Regards,  
Tushar.

---

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [December 9, 2008, 2:44pm UTC](https://www.ruby-forum.com/t/creating-run-time-objects/155215/2 "2008-12-09T14:44:10Z")

</div>

sounds as if it could be possible.  
would help if you could give us more information:  
what condition?  
which values?  
why don’t you just assign them to the new object (whatever kind of  
object that may be)
