Module: FmRest

Defined in:
lib/fmrest.rb,
lib/fmrest/v1.rb,
lib/fmrest/spyke.rb,
lib/fmrest/errors.rb,
lib/fmrest/version.rb,
lib/fmrest/v1/dates.rb,
lib/fmrest/v1/paths.rb,
lib/fmrest/v1/utils.rb,
lib/fmrest/spyke/base.rb,
lib/fmrest/spyke/model.rb,
lib/fmrest/string_date.rb,
lib/fmrest/token_store.rb,
lib/fmrest/spyke/portal.rb,
lib/fmrest/v1/connection.rb,
lib/fmrest/spyke/relation.rb,
lib/fmrest/spyke/model/orm.rb,
lib/fmrest/spyke/model/uri.rb,
lib/fmrest/v1/raise_errors.rb,
lib/fmrest/v1/type_coercer.rb,
lib/fmrest/spyke/model/auth.rb,
lib/fmrest/spyke/model/http.rb,
lib/fmrest/token_store/base.rb,
lib/fmrest/v1/token_session.rb,
lib/fmrest/token_store/redis.rb,
lib/fmrest/token_store/memory.rb,
lib/fmrest/token_store/moneta.rb,
lib/fmrest/v1/container_fields.rb,
lib/fmrest/spyke/container_field.rb,
lib/fmrest/spyke/spyke_formatter.rb,
lib/fmrest/v1/token_store/memory.rb,
lib/fmrest/spyke/model/attributes.rb,
lib/fmrest/spyke/model/connection.rb,
lib/fmrest/spyke/validation_error.rb,
lib/fmrest/spyke/model/associations.rb,
lib/fmrest/spyke/model/global_fields.rb,
lib/fmrest/spyke/model/serialization.rb,
lib/fmrest/token_store/active_record.rb,
lib/fmrest/spyke/model/container_fields.rb,
lib/fmrest/v1/token_store/active_record.rb

Defined Under Namespace

Modules: Spyke, StringDateAwareness, TokenStore, V1 Classes: APIError, ContainerFieldError, Error, StringDate, StringDateTime

Constant Summary collapse

VERSION =
"0.10.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.default_connection_settingsObject



15
16
17
# File 'lib/fmrest.rb', line 15

def default_connection_settings
  @default_connection_settings || {}
end

.token_storeObject

Returns the value of attribute token_store.



11
12
13
# File 'lib/fmrest.rb', line 11

def token_store
  @token_store
end

Class Method Details

.configObject



24
25
26
27
# File 'lib/fmrest.rb', line 24

def config
  warn "[DEPRECATION] `FmRest.config` is deprecated, use `FmRest.default_connection_settings` instead"
  default_connection_settings
end

.config=(connection_hash) ⇒ Object



19
20
21
22
# File 'lib/fmrest.rb', line 19

def config=(connection_hash)
  warn "[DEPRECATION] `FmRest.config=` is deprecated, use `FmRest.default_connection_settings=` instead"
  self.default_connection_settings = connection_hash
end