Sha256: 1ddf1f3037fcf1d6dc9831390891834c0d00f0c02a50fff9eba84dc64333805d
Contents?: true
Size: 666 Bytes
Versions: 9
Compression:
Stored size: 666 Bytes
Contents
module Netzke::Core # Represents the endpoint response at the server side. Collects instructions for the client-side object. Accessible as # the `client` in the endpoint calls, e.g.: # # class SimpleComponent < Netzke::Base # endpoint :whats_up_server do # client.set_title("Response from server") # end # end class EndpointResponse < ::Hash def method_missing(name, *params) if name.to_s =~ /(.+)=$/ self[$1.to_sym] = params.first else self[name] = self.class.new if self[name].nil? self[name] = params if params.present? self[name] end end end end
Version data entries
9 entries across 9 versions & 1 rubygems