Class: ApiResource::Local

Inherits:
Base
  • Object
show all
Defined in:
lib/api_resource/local.rb

Constant Summary

Constants included from Typecast

Typecast::FALSE_VALUES, Typecast::ISO_DATE, Typecast::ISO_DATETIME, Typecast::TRUE_VALUES

Class Method Summary collapse

Methods inherited from Base

#==, build, collection_path, connection, create, delete, #destroy, #dup, element_path, #encode, #eql?, format_with_mimetype_or_format_set=, #hash, headers, #id, #id=, inherited, #initialize, #new?, new_element_path, open_timeout_with_connection_reset=, #persisted?, prefix, prefix=, #prefix_attribute_names, #prefix_options, prefix_source, #reload, reset_connection, resource_definition, resource_definition_is_invalid?, resource_definition_mutex, respond_to?, #save, #save!, #serializable_hash, site_with_connection_reset=, split_options, timeout_with_connection_reset=, #to_json, #to_key, #to_param, #to_s, #to_xml, token_with_new_token_set=, #update_attributes

Methods included from Scopes

#scope?, #scope_attributes, #scopes

Methods included from Callbacks

#create_with_callbacks, #destroy_with_callbacks, #save_with_callbacks, #update_with_callbacks

Methods included from Observing

#notify_observers

Methods included from Attributes

#[], #[]=, #attribute?, #attributes, #attributes=, #clear_changes, #initialize, #make_changes_current, #method_missing, #protected_attribute?, #public_attribute?, #read_attribute, #read_attribute_before_type_cast, #reset_changes, #respond_to?, #save_with_dirty_tracking, #typecast_attribute_for_read, #typecast_attribute_for_write, #write_attribute

Methods included from ModelErrors

#errors, #load_remote_errors, #save_with_validations, #valid?

Constructor Details

This class inherits a constructor from ApiResource::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ApiResource::Attributes

Class Method Details

.load_resource_definitionObject

no definition to load



8
9
10
# File 'lib/api_resource/local.rb', line 8

def self.load_resource_definition
  true
end

.reload_resource_definitionObject

shouldn't do anything here either -



12
13
14
# File 'lib/api_resource/local.rb', line 12

def self.reload_resource_definition
  true
end

.set_class_attributes_upon_loadObject

nothing to do here



4
5
6
# File 'lib/api_resource/local.rb', line 4

def self.set_class_attributes_upon_load
  true
end