Sha256: 2f261dd742aa152e4d81574109626d1c1cd9cc56eea0e48963fd364c3d252bf3

Contents?: true

Size: 333 Bytes

Versions: 1

Compression:

Stored size: 333 Bytes

Contents

module Troo
  module Remote
    class Resource
      def self.create(json)
        new(json).create
      end

      def initialize(json)
        @json = json
      end

      def create
        self
      end

      private

      attr_reader :json

      def params
        @params ||= JSON.parse(json)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
troo-0.0.8 lib/troo/models/remote/resource.rb