Module: FmRest

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/portal_builder.rb,
lib/fmrest/spyke/container_field.rb,
lib/fmrest/spyke/model/record_id.rb,
lib/fmrest/spyke/model/rescuable.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,
lib/fmrest/spyke/model/script_execution.rb

Defined Under Namespace

Modules: Spyke

Constant Summary collapse

Layout =
Spyke::Base

Class Method Summary collapse

Class Method Details

.Layout(layout) ⇒ Class

Shortcut for creating a Layout class and setting its FM layout name.

Parameters:

  • layout (String)

    The FM layout to connect this class to

Returns:

  • (Class)

    A new subclass of FmRest::Layout with the FM layout setting already set.



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

def self.Layout(layout)
  Class.new(Layout) do
    self.layout layout
  end
end