On Thu, Aug 26, 2010 at 12:11 AM, simone <simone...@gmail.com> wrote:
> RestGraph.new
> => #<struct RestGraph auto_decode=nil, graph_server=nil,
> old_server=nil, accept=nil, lang=nil, app_id=nil, secret=nil,
> data=nil, cache=nil, error_handler=nil, log_handler=nil>
>
> Nothing! Could you please help me out ?
>
> Thanks
> Simone
I agreed this is confusing, but actually setup in config
means default values, and default values means if
there's no value inside an instance of RestGraph,
the default one would be returned. In this case, try:
# => should return the app_id in the YAML file.
>> RestGraph.new.app_id
Though when you inspect it, it looks like there's no value at all,
but that's where default values come into play.
Do you have any suggestion for this? Thanks a lot!
cheers,
http://github.com/cardinalblue/rest-graph/commit/8c0118d17168b6c36161c1d73a0f10a10788703c