Sha256: ef0ae3a37ce191a219938907b4e1a7f405981c9e4131d1d974f1980cc56b6a2b

Contents?: true

Size: 582 Bytes

Versions: 20

Compression:

Stored size: 582 Bytes

Contents

class RestModel
  class Property < Key
    autoload :Sender,    "rest_model/key/property/sender"
    autoload :Retriever, "rest_model/key/property/retriever"
    autoload :Response,  "rest_model/key/property/response"
    include   Sender
    include   Retriever
    include   Response

    attr_accessor :serializer, :translation

    def initialize(name, options = {})
      super
      @serializer  = options.fetch(:type, Serialization::String)
      @translation = Source::Translation.new(options)
    end

    def from_hash(value, resource = nil)
      value
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rest_model-0.1.24 lib/rest_model/key/property.rb
rest_model-0.1.23 lib/rest_model/key/property.rb
rest_model-0.1.22 lib/rest_model/key/property.rb
rest_model-0.1.21 lib/rest_model/key/property.rb
rest_model-0.1.20 lib/rest_model/key/property.rb
rest_model-0.1.19 lib/rest_model/key/property.rb
rest_model-0.1.18 lib/rest_model/key/property.rb
rest_model-0.1.17 lib/rest_model/key/property.rb
rest_model-0.1.16 lib/rest_model/key/property.rb
rest_model-0.1.15 lib/rest_model/key/property.rb
rest_model-0.1.14 lib/rest_model/key/property.rb
rest_model-0.1.13 lib/rest_model/key/property.rb
rest_model-0.1.12 lib/rest_model/key/property.rb
rest_model-0.1.11 lib/rest_model/key/property.rb
rest_model-0.1.10 lib/rest_model/key/property.rb
rest_model-0.1.9 lib/rest_model/key/property.rb
rest_model-0.1.8 lib/rest_model/key/property.rb
rest_model-0.1.7 lib/rest_model/key/property.rb
rest_model-0.1.6 lib/rest_model/key/property.rb
rest_model-0.1.5 lib/rest_model/key/property.rb