module Webspicy::Support::DataObject
Attributes
raw[RW]
Public Class Methods
new(raw)
click to toggle source
# File lib/webspicy/support/data_object.rb, line 5 def initialize(raw) @raw = raw end
Public Instance Methods
method_missing(name, *args, &bl)
click to toggle source
Calls superclass method
# File lib/webspicy/support/data_object.rb, line 11 def method_missing(name, *args, &bl) if @raw.has_key?(name) && args.empty? && bl.nil? @raw[name] else super end end
to_info()
click to toggle source
# File lib/webspicy/support/data_object.rb, line 19 def to_info @raw end