lib/rest_model/key/property.rb in rest_model-0.1.4 vs lib/rest_model/key/property.rb in rest_model-0.1.5
- old
+ new
@@ -5,15 +5,15 @@
autoload :Response, "rest_model/key/property/response"
include Sender
include Retriever
include Response
- attr_accessor :serializer, :translations
+ attr_accessor :serializer, :translation
def initialize(name, options = {})
super
- @serializer = options.fetch(:type, Serialization::String)
- @translations = options[:values]
+ @serializer = options.fetch(:type, Serialization::String)
+ @translation = Source::Translation.new(options)
end
def from_hash(value, resource = nil)
value
end