Class: ApiResource::Conditions::WhereCondition

Inherits:
AbstractCondition show all
Defined in:
lib/api_resource/conditions/where_condition.rb

Overview

Class to handle pagination params, passing of pagination params along to the server, and the retrieval of the headers from the response

Author:

  • [dlangevin]

Instance Attribute Summary

Attributes inherited from AbstractCondition

#association, #conditions, #included_objects, #internal_object, #klass, #remote_path

Instance Method Summary collapse

Methods inherited from AbstractCondition

#all, #blank_conditions?, #current_page, #each, #eager_load?, #expires_in, #find, #load, #loaded?, #merge!, #offset, #paginated?, #per_page, #reload, #to_hash, #to_query, #total_entries, #total_pages

Constructor Details

#initialize(klass, opts) ⇒ WhereCondition

Returns a new instance of WhereCondition.



13
14
15
# File 'lib/api_resource/conditions/where_condition.rb', line 13

def initialize(klass, opts)
  super(opts, klass)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ApiResource::Conditions::AbstractCondition