Sha256: ae79b803fc3df48084f2b042af719481d99c693d5e2129bd0a8cf1c3782a889a

Contents?: true

Size: 291 Bytes

Versions: 11

Compression:

Stored size: 291 Bytes

Contents

# frozen_string_literal: true

module BrightSerializer
  module Entity
    class Parser
      attr_reader :model, :endpoint

      def initialize(model, endpoint)
        @model = model
        @endpoint = endpoint
      end

      def call
        @model.entity
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bright_serializer-0.5.2 lib/bright_serializer/entity/parser.rb
bright_serializer-0.4.1 lib/bright_serializer/entity/parser.rb
bright_serializer-0.5.1 lib/bright_serializer/entity/parser.rb
bright_serializer-0.5.0 lib/bright_serializer/entity/parser.rb
bright_serializer-0.4.0 lib/bright_serializer/entity/parser.rb
bright_serializer-0.3.1 lib/bright_serializer/entity/parser.rb
bright_serializer-0.3.0 lib/bright_serializer/entity/parser.rb
bright_serializer-0.2.5 lib/bright_serializer/entity/parser.rb
bright_serializer-0.2.4 lib/bright_serializer/entity/parser.rb
bright_serializer-0.2.3 lib/bright_serializer/entity/parser.rb
bright_serializer-0.2.2 lib/bright_serializer/entity/parser.rb