Sha256: 74041502befb8240b1f2f151d6259e5d5e21903905968bbf7f176a0497439fad

Contents?: true

Size: 511 Bytes

Versions: 29

Compression:

Stored size: 511 Bytes

Contents

# frozen_string_literal: true

module FmRest
  module Spyke
    class Base < ::Spyke::Base
      include FmRest::Spyke::Model
    end
  end

  Layout = Spyke::Base

  # Shortcut for creating a Layout class and setting its FM layout name.
  #
  # @param layout [String] The FM layout to connect this class to
  #
  # @return [Class] A new subclass of `FmRest::Layout` with the FM layout
  #   setting already set.
  #
  def self.Layout(layout)
    Class.new(Layout) do
      self.layout layout
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
fmrest-spyke-0.26.2 lib/fmrest/spyke/base.rb
fmrest-spyke-0.26.1 lib/fmrest/spyke/base.rb
fmrest-spyke-0.26.1.rc1 lib/fmrest/spyke/base.rb
fmrest-spyke-0.26.0 lib/fmrest/spyke/base.rb
fmrest-spyke-0.26.0.rc1 lib/fmrest/spyke/base.rb
fmrest-spyke-0.25.0.rc1 lib/fmrest/spyke/base.rb
fmrest-spyke-0.24.0 lib/fmrest/spyke/base.rb
fmrest-spyke-0.24.0.rc1 lib/fmrest/spyke/base.rb
fmrest-spyke-0.23.1 lib/fmrest/spyke/base.rb
fmrest-spyke-0.23.0 lib/fmrest/spyke/base.rb
fmrest-spyke-0.22.0 lib/fmrest/spyke/base.rb
fmrest-spyke-0.21.0 lib/fmrest/spyke/base.rb
fmrest-spyke-0.21.0.rc1 lib/fmrest/spyke/base.rb
fmrest-spyke-0.20.0 lib/fmrest/spyke/base.rb
fmrest-spyke-0.20.0.rc1 lib/fmrest/spyke/base.rb
fmrest-spyke-0.19.0 lib/fmrest/spyke/base.rb
fmrest-spyke-0.19.0.rc1 lib/fmrest/spyke/base.rb
fmrest-spyke-0.18.0 lib/fmrest/spyke/base.rb
fmrest-spyke-0.18.0.rc3 lib/fmrest/spyke/base.rb
fmrest-spyke-0.18.0.rc2 lib/fmrest/spyke/base.rb