Ruby: Having trouble pulling data from this class
Posted
by Shpigford
on Stack Overflow
See other posts from Stack Overflow
or by Shpigford
Published on 2010-03-15T03:52:07Z
Indexed on
2010/03/15
3:59 UTC
Read the original article
Hit count: 304
So here's the output of inspect
on a class:
<Recurly::BillingInfo::CreditCard:0x1036a8a98 @prefix_options={}, @attributes={"month"=>1, "last_four"=>"1", "type"=>"bogus", "year"=>2010}>
I'm trying to get the type
attribute but seems that might be some sort of reserved word?
Here's the full rundown of what I'm trying to do
@charges = Recurly::BillingInfo.find('123')
@charges.credit_card.type
So, how can I get type
from that?
© Stack Overflow or respective owner