locomotivecms/engine

View on GitHub
app/models/locomotive/concerns/page/to_steam.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Locomotive
  module Concerns
    module Page
      module ToSteam

        def to_steam
          @steam_page ||= steam_repositories.page.build(self.attributes.symbolize_keys)
        end

        private

        def steam_repositories
          @steam_repositories ||= Locomotive::Steam::Services.build_instance.repositories
        end

      end

    end
  end
end