Sha256: 0720b4ffaf4790413126ebc37ecc76712f24a199549f4dce4e93b91646904b23

Contents?: true

Size: 337 Bytes

Versions: 7

Compression:

Stored size: 337 Bytes

Contents

module EventbriteSDK
  class Resource
    module Operations
      module List
        def list
          ResourceList.new(
            key: path.split('/').first,
            object_class: EventbriteSDK.const_get(name.split('::').last),
            url_base: new.path.gsub(/\/\Z/, '')
          )
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
eventbrite_sdk-3.0.8 lib/eventbrite_sdk/resource/operations/list.rb
eventbrite_sdk-3.0.7 lib/eventbrite_sdk/resource/operations/list.rb
eventbrite_sdk-3.0.6 lib/eventbrite_sdk/resource/operations/list.rb
eventbrite_sdk-3.0.5 lib/eventbrite_sdk/resource/operations/list.rb
eventbrite_sdk-3.0.4 lib/eventbrite_sdk/resource/operations/list.rb
eventbrite_sdk-3.0.3 lib/eventbrite_sdk/resource/operations/list.rb
eventbrite_sdk-3.0.2 lib/eventbrite_sdk/resource/operations/list.rb