Class: Cask::URL::DSL Private
- Extended by:
- Forwardable
- Defined in:
- cask/url.rb,
sorbet/rbi/dsl/cask/url/dsl.rbi
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 ⇒ URI::Generic, ... readonly private
- #revision ⇒ Object readonly private
- #revisions ⇒ Object readonly private
- #specs ⇒ Hash{Symbol => T.untyped} readonly private
- #tag ⇒ Object readonly private
- #trust_cert ⇒ Object readonly private
- #uri ⇒ Object readonly private
- #user_agent ⇒ Symbol, ... readonly private
- #using ⇒ T::Class[T.anything], ... readonly private
- #verified ⇒ String? readonly private
Instance Method Summary collapse
- #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 constructor private
- #path(*args, &block) ⇒ T.untyped private
- #scheme(*args, &block) ⇒ T.untyped private
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
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.
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'cask/url.rb', line 61 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) header = Array(header) unless header.nil? 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[:headers] = @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.
11 12 13 |
# File 'cask/url.rb', line 11 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.
11 12 13 |
# File 'cask/url.rb', line 11 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.
11 12 13 |
# File 'cask/url.rb', line 11 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.
11 12 13 |
# File 'cask/url.rb', line 11 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.
11 12 13 |
# File 'cask/url.rb', line 11 def only_path @only_path end |
#referer ⇒ URI::Generic, ... (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.
15 16 17 |
# File 'cask/url.rb', line 15 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.
11 12 13 |
# File 'cask/url.rb', line 11 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.
11 12 13 |
# File 'cask/url.rb', line 11 def revisions @revisions end |
#specs ⇒ Hash{Symbol => T.untyped} (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.
18 19 20 |
# File 'cask/url.rb', line 18 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.
11 12 13 |
# File 'cask/url.rb', line 11 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.
11 12 13 |
# File 'cask/url.rb', line 11 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.
11 12 13 |
# File 'cask/url.rb', line 11 def uri @uri end |
#user_agent ⇒ Symbol, ... (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.
21 22 23 |
# File 'cask/url.rb', line 21 def user_agent @user_agent end |
#using ⇒ T::Class[T.anything], ... (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.
24 25 26 |
# File 'cask/url.rb', line 24 def using @using end |
#verified ⇒ String? (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.
27 28 29 |
# File 'cask/url.rb', line 27 def verified @verified end |
Instance Method Details
#path(*args, &block) ⇒ T.untyped
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.
10 |
# File 'sorbet/rbi/dsl/cask/url/dsl.rbi', line 10 def path(*args, &block); end |
#scheme(*args, &block) ⇒ T.untyped
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 |
# File 'sorbet/rbi/dsl/cask/url/dsl.rbi', line 13 def scheme(*args, &block); end |