client/lib/base_object.rb
def method_handler(m, args=[])
        case m[:type]
          when :link then return @client.send(m[:method_name].singularize, m[:id])
          when :text then return m[:value]
          when :property then return m[:property]
          when :collection then return m[:values]
          when :list then return m[:value].join(", ")
          else raise NoHandlerForMethod
        end
      end
# Basic method hander. This define a way how value from property
# will be returned
Basic method hander. This define a way how value from property
will be returned
Basic method hander . This define a way how value from property will be returned
def method_handler(m, args=[])
        case m[:type]
          when :link then return @client.send(m[:method_name].singularize, m[:id])
          when :text then return m[:value]
          when :property then return m[:property]
          when :collection then return m[:values]
          when :list then return m[:value].join(", ")
          else raise NoHandlerForMethod
        end
      end
def method_handler ( m , args = [ ] ) case m [ :type ] when :link then return @client . send ( m [ :method_name ] . singularize , m [ :id ] ) when :text then return m [ :value ] when :property then return m [ :property ] when :collection then return m [ :values ] when :list then return m [ :value ] . join ( ", " ) else raise NoHandlerForMethod end end
Basic method hander.
Basic method hander .
m
args