Sha256: 0b674d5cd3999833506df1fc7f5bf25f86ed46463d6b1018a15896d05ee018eb

Contents?: true

Size: 328 Bytes

Versions: 20

Compression:

Stored size: 328 Bytes

Contents

require 'happymapper'

module Cleo
  class Result
    include HappyMapper
    tag 'element'

    has_many :term, String, :tag => 'term'
    element :id, Integer
    element :name, String
    element :score, Float
    element :timestamp, Time
    element :title, String
    element :url, String

    alias :terms :term
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
acts_as_cleo-2.4.5 lib/cleo/result.rb
acts_as_cleo-2.4.4 lib/cleo/result.rb
acts_as_cleo-2.4.3 lib/cleo/result.rb
acts_as_cleo-2.4.2 lib/cleo/result.rb
acts_as_cleo-2.4.1 lib/cleo/result.rb
acts_as_cleo-2.4.0 lib/cleo/result.rb
acts_as_cleo-2.3.0 lib/cleo/result.rb
acts_as_cleo-2.2.1 lib/cleo/result.rb
acts_as_cleo-2.2.0 lib/cleo/result.rb
acts_as_cleo-2.1.2 lib/cleo/result.rb
acts_as_cleo-2.1.1 lib/cleo/result.rb
acts_as_cleo-2.1.0 lib/cleo/result.rb
acts_as_cleo-2.0.1 lib/cleo/result.rb
acts_as_cleo-2.0.0 lib/cleo/result.rb
acts_as_cleo-1.2.0 lib/cleo/result.rb
acts_as_cleo-1.1.0 lib/cleo/result.rb
acts_as_cleo-1.0.0 lib/cleo/result.rb
acts_as_cleo-0.0.4 lib/cleo/result.rb
acts_as_cleo-0.0.3 lib/cleo/result.rb
acts_as_cleo-0.0.2 lib/cleo/result.rb