Sha256: 936cba0a9df46b5af2f10b076710176c4da8d5bc689e0e7351252bd28101409d

Contents?: true

Size: 242 Bytes

Versions: 26

Compression:

Stored size: 242 Bytes

Contents

module AngularSprinkles
  class Constructor
    def initialize(args)
      @json_wrapper = args.fetch(:json_wrapper)
      @collection = args.fetch(:collection)
    end

    def to_json
      @json_wrapper.call(@collection)
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
angular_sprinkles-0.3.3 lib/angular_sprinkles/constructor.rb
angular_sprinkles-0.3.2 lib/angular_sprinkles/constructor.rb
angular_sprinkles-0.3.1 lib/angular_sprinkles/constructor.rb
angular_sprinkles-0.3.0 lib/angular_sprinkles/constructor.rb
angular_sprinkles-0.2.14 lib/angular_sprinkles/constructor.rb
angular_sprinkles-0.2.13 lib/angular_sprinkles/constructor.rb
angular_sprinkles-0.2.12 lib/angular_sprinkles/constructor.rb
angular_sprinkles-0.2.11 lib/angular_sprinkles/constructor.rb
angular_sprinkles-0.2.10 lib/angular_sprinkles/constructor.rb
angular_sprinkles-0.2.9 lib/angular_sprinkles/constructor.rb
angular_sprinkles-0.2.8 lib/angular_sprinkles/constructor.rb
angular_sprinkles-0.2.7 lib/angular_sprinkles/constructor.rb
angular_sprinkles-0.2.6 lib/angular_sprinkles/constructor.rb
angular_sprinkles-0.2.5 lib/angular_sprinkles/constructor.rb
angular_sprinkles-0.2.4 lib/angular_sprinkles/constructor.rb
angular_sprinkles-0.2.3 lib/angular_sprinkles/constructor.rb
angular_sprinkles-0.2.2 lib/angular_sprinkles/constructor.rb
angular_sprinkles-0.2.1 lib/angular_sprinkles/constructor.rb
angular_sprinkles-0.2.0 lib/angular_sprinkles/constructor.rb
angular_sprinkles-0.1.1 lib/angular_sprinkles/constructor.rb