Sha256: 5586b87330e8ae6d41952b3153a8a0e4b3fb8cc92ec714fde268f73556809697
Contents?: true
Size: 818 Bytes
Versions: 19
Compression:
Stored size: 818 Bytes
Contents
class RestModel module Configuration extend self attr_accessor :host DefaultHandler = proc {|keys| keys} def convert_input_keys @convert_input_keys || DefaultHandler end def convert_input_keys=(converter) @convert_input_keys = converter end def true_value @true || true end def true_value=(value) @true = value end def false_value @false || false end def false_value=(value) @false = value end def date_format @date_format end def date_format=(format) @date_format = format end def date_time_format @date_time_format end def date_time_format=(format) @date_time_format = format end def configure yield self if block_given? end end end
Version data entries
19 entries across 19 versions & 1 rubygems