Sha256: 01563271e983140ed82a76d0460214b8dce9b376d3873d66bd3c0f8a38ab5ed3
Contents?: true
Size: 689 Bytes
Versions: 2
Compression:
Stored size: 689 Bytes
Contents
# encoding: utf-8 module Nimbu module Endpoints class Channels < Endpoint def entries(options={}, &block) @entries ||= Nimbu::Builder.new('Channels::Entries', current_options.merge(options), &block) end def list(*args) arguments(args) response = get_request("/channels", arguments.params) return response unless block_given? response.each { |el| yield el } end alias :all :list def get(*args) arguments(args, :required => [:channel_id]) get_request("/channels/#{channel_id}", arguments.params) end alias :find :get end # Authorizations end # Endpoints end # Nimbu
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nimbu-api-0.0.2 | lib/nimbu-api/endpoints/channels.rb |
nimbu-api-0.0.1 | lib/nimbu-api/endpoints/channels.rb |