Module: FmRest::Spyke

Defined in:
lib/fmrest/spyke.rb,
lib/fmrest/spyke/base.rb,
lib/fmrest/spyke/model.rb,
lib/fmrest/spyke/portal.rb,
lib/fmrest/spyke/relation.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/container_field.rb,
lib/fmrest/spyke/spyke_formatter.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/spyke/model/container_fields.rb

Defined Under Namespace

Modules: Model Classes: Base, ContainerField, DataInfo, Metadata, Portal, Relation, SpykeFormatter, ValidationError

Class Method Summary collapse

Class Method Details

.Base(config = nil) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/fmrest/spyke/base.rb', line 10

def Base(config = nil)
  warn "[DEPRECATION] Inheriting from `FmRest::Spyke::Base(config)` is deprecated and will be removed, inherit from `FmRest::Spyke::Base` (without arguments) and use `fmrest_config=` instead"

  if config
    return Class.new(::FmRest::Spyke::Base) do
             self.fmrest_config = config
           end
  end

  ::FmRest::Spyke::Base
end

.included(base) ⇒ Object



17
18
19
# File 'lib/fmrest/spyke.rb', line 17

def self.included(base)
  base.include Model
end