lib/gooddata/mixins/md_object_query.rb in gooddata-0.6.51 vs lib/gooddata/mixins/md_object_query.rb in gooddata-0.6.52
- old
+ new
@@ -8,11 +8,14 @@
module Mixin
module MdObjectQuery
# Method intended to get all objects of that type in a specified project
#
# @param options [Hash] the options hash
- # @option options [Boolean] :full if passed true the subclass can decide to pull in full objects. This is desirable from the usability POV but unfortunately has negative impact on performance so it is not the default
+ # @option options [Boolean] :full if passed true the subclass can decide
+ # to pull in full objects. This is desirable from the usability POV
+ # but unfortunately has negative impact on performance so it is not
+ # the default.
# @return [Array<GoodData::MdObject> | Array<Hash>] Return the appropriate metadata objects or their representation
def all(_options = { :client => GoodData.connection, :project => GoodData.project })
fail NotImplementedError, 'Method should be implemented in subclass. Currently there is no way how to get all metadata objects on API.'
end
@@ -23,10 +26,13 @@
# :full => false is the default. This will most likely change
#
# @param query_obj_type [String] string used in URI to distinguish different query resources for different objects
# @param klass [Class] A class used for instantiating the returned data
# @param options [Hash] the options hash
- # @option options [Boolean] :full if passed true the subclass can decide to pull in full objects. This is desirable from the usability POV but unfortunately has negative impact on performance so it is not the default
+ # @option options [Boolean] :full if passed true the subclass can
+ # decide to pull in full objects. This is desirable from the usability
+ # POV but unfortunately has negative impact on performance so it is
+ # not the default.
# @return [Array<GoodData::MdObject> | Array<Hash>] Return the appropriate metadata objects or their representation
def query(query_obj_type, klass, options = { :client => GoodData.connection, :project => GoodData.project })
client = options[:client]
fail ArgumentError, 'No :client specified' if client.nil?