Class: Cask::URL::DSL Private
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
Instance Attribute Summary collapse
-
#branch ⇒ Object
readonly
private
-
#cookies ⇒ Object
readonly
private
-
#data ⇒ Object
readonly
private
-
#header ⇒ Object
readonly
private
-
#only_path ⇒ Object
readonly
private
-
#referer ⇒ Object
readonly
private
-
#revision ⇒ Object
readonly
private
-
#revisions ⇒ Object
readonly
private
-
#specs ⇒ Object
readonly
private
-
#tag ⇒ Object
readonly
private
-
#trust_cert ⇒ Object
readonly
private
-
#uri ⇒ Object
readonly
private
-
#user_agent ⇒ Object
readonly
private
-
#using ⇒ Object
readonly
private
-
#verified ⇒ Object
readonly
private
Instance Method Summary collapse
Constructor Details
#initialize(uri, verified: nil, using: nil, tag: nil, branch: nil, revisions: nil, revision: nil, trust_cert: nil, cookies: nil, referer: nil, header: nil, user_agent: nil, data: nil, only_path: nil) ⇒ void
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'cask/url.rb', line 41 def initialize( uri, verified: nil, using: nil, tag: nil, branch: nil, revisions: nil, revision: nil, trust_cert: nil, cookies: nil, referer: nil, header: nil, user_agent: nil, data: nil, only_path: nil ) @uri = URI(uri) specs = {} specs[:verified] = @verified = verified specs[:using] = @using = using specs[:tag] = @tag = tag specs[:branch] = @branch = branch specs[:revisions] = @revisions = revisions specs[:revision] = @revision = revision specs[:trust_cert] = @trust_cert = trust_cert specs[:cookies] = @cookies = specs[:referer] = @referer = referer specs[:header] = @header = header specs[:user_agent] = @user_agent = user_agent || :default specs[:data] = @data = data specs[:only_path] = @only_path = only_path @specs = specs.compact end |
Instance Attribute Details
#branch ⇒ Object (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
13 14 15 |
# File 'cask/url.rb', line 13 def branch @branch end |
#cookies ⇒ Object (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
13 14 15 |
# File 'cask/url.rb', line 13 def @cookies end |
#data ⇒ Object (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
13 14 15 |
# File 'cask/url.rb', line 13 def data @data end |
#header ⇒ Object (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
13 14 15 |
# File 'cask/url.rb', line 13 def header @header end |
#only_path ⇒ Object (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
13 14 15 |
# File 'cask/url.rb', line 13 def only_path @only_path end |
#referer ⇒ Object (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
13 14 15 |
# File 'cask/url.rb', line 13 def referer @referer end |
#revision ⇒ Object (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
13 14 15 |
# File 'cask/url.rb', line 13 def revision @revision end |
#revisions ⇒ Object (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
13 14 15 |
# File 'cask/url.rb', line 13 def revisions @revisions end |
#specs ⇒ Object (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
13 14 15 |
# File 'cask/url.rb', line 13 def specs @specs end |
#tag ⇒ Object (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
13 14 15 |
# File 'cask/url.rb', line 13 def tag @tag end |
#trust_cert ⇒ Object (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
13 14 15 |
# File 'cask/url.rb', line 13 def trust_cert @trust_cert end |
#uri ⇒ Object (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
13 14 15 |
# File 'cask/url.rb', line 13 def uri @uri end |
#user_agent ⇒ Object (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
13 14 15 |
# File 'cask/url.rb', line 13 def user_agent @user_agent end |
#using ⇒ Object (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
13 14 15 |
# File 'cask/url.rb', line 13 def using @using end |
#verified ⇒ Object (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
13 14 15 |
# File 'cask/url.rb', line 13 def verified @verified end |