Sha256: 294b9ce2fc2fc16fc2f1dd5530e2eb669d33cd9ec8d629dd0de49e40dcba74cc

Contents?: true

Size: 696 Bytes

Versions: 6

Compression:

Stored size: 696 Bytes

Contents

# encoding: utf-8

require_relative '../../../api'

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

6 entries across 6 versions & 3 rubygems

Version Path
github_api2-1.0.1 lib/github_api2/client/repos/releases/tags.rb
github_api2-1.0.0 lib/github_api2/client/repos/releases/tags.rb
github_api-0.19.0 lib/github_api/client/repos/releases/tags.rb
lingfennan-github_api-0.18.2 lib/github_api/client/repos/releases/tags.rb
github_api-0.18.2 lib/github_api/client/repos/releases/tags.rb
github_api-0.18.1 lib/github_api/client/repos/releases/tags.rb