Class: ActiveRemote::Config
- Inherits:
-
ActiveSupport::OrderedOptions
- Object
- ActiveSupport::OrderedOptions
- ActiveRemote::Config
- Defined in:
- lib/active_remote/config.rb
Instance Method Summary collapse
- #default_cache_key_updated_at? ⇒ Boolean
- #include_root_in_json=(true_or_false) ⇒ Object
-
#initialize(options = {}) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(options = {}) ⇒ Config
Returns a new instance of Config.
6 7 8 9 10 11 |
# File 'lib/active_remote/config.rb', line 6 def initialize( = {}) super self.default_cache_key_updated_at = false self.include_root_in_json = true end |
Instance Method Details
#default_cache_key_updated_at? ⇒ Boolean
13 14 15 |
# File 'lib/active_remote/config.rb', line 13 def default_cache_key_updated_at? self[:default_cache_key_updated_at] end |
#include_root_in_json=(true_or_false) ⇒ Object
17 18 19 20 |
# File 'lib/active_remote/config.rb', line 17 def include_root_in_json=(true_or_false) self[:include_root_in_json] = !!true_or_false ::ActiveRemote::Base.include_root_in_json = self[:include_root_in_json] end |