Class: Conquiro::SoftwareRepository

Inherits:
Struct
  • Object
show all
Defined in:
lib/conquiro/software_repository.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#adapterObject

Returns the value of attribute adapter

Returns:

  • (Object)

    the current value of adapter



6
7
8
# File 'lib/conquiro/software_repository.rb', line 6

def adapter
  @adapter
end

Instance Method Details

#query(params) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/conquiro/software_repository.rb', line 7

def query(params)
  params.reverse_merge!(default_params)
  criteria = Conquiro::Criteria.new
  params.each { |name, value|
    criteria[name] = value
  }
  adapter.query(criteria)
end