Sha256: 6b282effda4dff26e637bd815f91b3478c5d12cd8cf1b00e06ffacf29861fe35

Contents?: true

Size: 663 Bytes

Versions: 11

Compression:

Stored size: 663 Bytes

Contents

# encoding: utf-8

module Github
  # The Releases API
  class Client::Repos::Releases::Tags < API
    # Get a published release with the specified tag.
    #
    # @see https://developer.github.com/v3/repos/releases/#get-a-release-by-tag-name
    #
    # @example
    #   github = Github.new
    #   github.repos.releases.tags.get 'owner', 'repo', 'tag'
    #
    # @api public
    def get(*args)
      arguments(args, required: [:owner, :repo, :tag]).params

      get_request("/repos/#{arguments.owner}/#{arguments.repo}/releases/tags/#{arguments.tag}" , arguments.params)
    end
    alias_method :find, :get
  end # Client::Repos::Releases::Tags
end # Github

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
github_api-0.17.0 lib/github_api/client/repos/releases/tags.rb
github_api-0.16.0 lib/github_api/client/repos/releases/tags.rb
github_api-0.15.0 lib/github_api/client/repos/releases/tags.rb
github_api-0.14.5 lib/github_api/client/repos/releases/tags.rb
github_api-0.14.4 lib/github_api/client/repos/releases/tags.rb
github_api-0.14.3 lib/github_api/client/repos/releases/tags.rb
github_api-0.14.2 lib/github_api/client/repos/releases/tags.rb
github_api-0.14.1 lib/github_api/client/repos/releases/tags.rb
github_api-0.14.0 lib/github_api/client/repos/releases/tags.rb
github_api-0.13.1 lib/github_api/client/repos/releases/tags.rb
github_api-0.13.0 lib/github_api/client/repos/releases/tags.rb