Module: FmRest::Spyke::Model

Extended by:
ActiveSupport::Concern
Includes:
Associations, Attributes, Auth, Connection, ContainerFields, GlobalFields, Http, Orm, RecordID, ScriptExecution, Serialization, URI
Included in:
Base
Defined in:
lib/fmrest/spyke/model.rb,
lib/fmrest/spyke/model/orm.rb,
lib/fmrest/spyke/model/uri.rb,
lib/fmrest/spyke/model/auth.rb,
lib/fmrest/spyke/model/http.rb,
lib/fmrest/spyke/model/record_id.rb,
lib/fmrest/spyke/model/rescuable.rb,
lib/fmrest/spyke/model/attributes.rb,
lib/fmrest/spyke/model/connection.rb,
lib/fmrest/spyke/model/associations.rb,
lib/fmrest/spyke/model/global_fields.rb,
lib/fmrest/spyke/model/serialization.rb,
lib/fmrest/spyke/model/container_fields.rb,
lib/fmrest/spyke/model/script_execution.rb

Defined Under Namespace

Modules: Associations, Attributes, Auth, Connection, ContainerFields, GlobalFields, Http, Orm, RecordID, Rescuable, ScriptExecution, Serialization, URI

Instance Attribute Summary

Attributes included from RecordID

#__mod_id, #__record_id

Instance Method Summary collapse

Methods included from ScriptExecution

execute, execute_script

Methods included from Auth

logout, logout!, request_auth_token, request_auth_token!

Methods included from Http

last_request_metadata, request

Methods included from GlobalFields

set_globals

Methods included from ContainerFields

container

Methods included from Orm

all, create!, #destroy, fetch, #reload, #save, #save!, #update!, #validate!

Methods included from Associations

#__new_portal_record_info=, #association, #changed?, #changes_applied, #embedded_in_portal, #embedded_in_portal?, has_portal, #mark_for_destruction, #marked_for_destruction?, #portals, #reload

Methods included from Serialization

#to_params

Methods included from Attributes

attributes, #attributes=, #reload

Methods included from RecordID

#__record_id?, #destroy, #hash, #inspect

Methods included from URI

layout, uri

Methods included from Connection

clear_fmrest_config_overlay, connection, faraday, #fmrest_config, fmrest_config, fmrest_config=, fmrest_config_overlay, fmrest_config_overlay=, with_overlay

Instance Method Details

#uriObject

Spyke override -- Uses __record_id for building the record URI.



38
39
40
# File 'lib/fmrest/spyke/model/http.rb', line 38

def uri
  ::Spyke::Path.new(@uri_template, fmrest_uri_attributes) if @uri_template
end