class ConcourseObjects::Resources::GitHubRelease::Source

Constants

ACCEPTABLE_ORDER_BYS
DEFAULT_DRAFTS
DEFAULT_INSECURE
DEFAULT_ORDER_BY
DEFAULT_PRE_RELEASE
DEFAULT_RELEASE
DEFAULT_TAG_FILTER
OrderByIsAcceptable

Public Class Methods

new(options = {}) { |this, options| ... } click to toggle source
Calls superclass method ConcourseObjects::Object::new
# File lib/concourse-objects/resources/github-release.rb, line 39
def initialize(options = {})
  options.transform_keys(&:to_sym).then do |options|
    unless options.key?(:owner)
      options.store(:owner, options.fetch(:user)) if options.key?(:user)
    end

    super(options) do |this, options|
      yield this, options if block_given?
    end
  end
end