lib/braque/relations.rb
def has_many(relation)
      define_method relation do |params = {}|
        response = self.class.client.method(self.class.instance_method_name)
                       .call(resource_find_options)
                       .method(relation).call(params)
        Braque::Collection::LinkedArray.new(
          response,
          relation.to_s.classify.singularize.constantize
        )
      end
    end
def has_many(relation)
      define_method relation do |params = {}|
        response = self.class.client.method(self.class.instance_method_name)
                       .call(resource_find_options)
                       .method(relation).call(params)
        Braque::Collection::LinkedArray.new(
          response,
          relation.to_s.classify.singularize.constantize
        )
      end
    end
def has_many ( relation ) define_method relation do | params = { } | response = self . class . client . method ( self . class . instance_method_name ) . call ( resource_find_options ) . method ( relation ) . call ( params ) Braque :: Collection :: LinkedArray . new ( response , relation . to_s . classify . singularize . constantize ) end end
rubocop:disable Style/PredicateName
rubocop : disable Style / PredicateName