Sha256: da86f201d02f92c1031e27cb202498d12ad47b40de9e2b9442fab4c14ecccb30

Contents?: true

Size: 225 Bytes

Versions: 13

Compression:

Stored size: 225 Bytes

Contents

require 'active_support/concern'

module Journey::Resource::Search
  extend ActiveSupport::Concern

  included do
    def self.search(q)
      instantiate_collection format.decode(post(:search, q: q).body)
    end
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
embark-journey-0.0.17 lib/journey/resource/search.rb
embark-journey-0.0.16 lib/journey/resource/search.rb
embark-journey-0.0.15 lib/journey/resource/search.rb
embark-journey-0.0.14 lib/journey/resource/search.rb
embark-journey-0.0.13 lib/journey/resource/search.rb
embark-journey-0.0.12 lib/journey/resource/search.rb
embark-journey-0.0.11 lib/journey/resource/search.rb
embark-journey-0.0.10 lib/journey/resource/search.rb
embark-journey-0.0.9 lib/journey/resource/search.rb
embark-journey-0.0.8 lib/journey/resource/search.rb
embark-journey-0.0.7 lib/journey/resource/search.rb
embark-journey-0.0.6 lib/journey/resource/search.rb
embark-journey-0.0.5 lib/journey/resource/search.rb