Class: URL Private
- Inherits:
-
Object
- Object
- URL
- Extended by:
- Forwardable, T::Sig
- Defined in:
- Library/Homebrew/cask/url.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class corresponding to the url
stanza.
Instance Attribute Summary collapse
- #branch ⇒ Object readonly private
- #cookies ⇒ Object readonly private
- #data ⇒ Object readonly private
- #header ⇒ 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
Instance Method Summary collapse
-
#initialize(uri, using: nil, tag: nil, branch: nil, revisions: nil, revision: nil, trust_cert: nil, cookies: nil, referer: nil, header: nil, user_agent: nil, data: nil) ⇒ URL
constructor
private
A new instance of URL.
Constructor Details
#initialize(uri, using: nil, tag: nil, branch: nil, revisions: nil, revision: nil, trust_cert: nil, cookies: nil, referer: nil, header: nil, user_agent: nil, data: nil) ⇒ URL
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of URL.
35 36 37 38 39 40 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 |
# File 'Library/Homebrew/cask/url.rb', line 35 def initialize( uri, using: nil, tag: nil, branch: nil, revisions: nil, revision: nil, trust_cert: nil, cookies: nil, referer: nil, header: nil, user_agent: nil, data: nil ) @uri = URI(uri) specs = {} 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 = specs.compact end |
Instance Attribute Details
#branch ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'Library/Homebrew/cask/url.rb', line 10 def branch @branch end |
#cookies ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'Library/Homebrew/cask/url.rb', line 10 def @cookies end |
#data ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'Library/Homebrew/cask/url.rb', line 10 def data @data end |
#header ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'Library/Homebrew/cask/url.rb', line 10 def header @header end |
#referer ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'Library/Homebrew/cask/url.rb', line 10 def referer @referer end |
#revision ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'Library/Homebrew/cask/url.rb', line 10 def revision @revision end |
#revisions ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'Library/Homebrew/cask/url.rb', line 10 def revisions @revisions end |
#specs ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'Library/Homebrew/cask/url.rb', line 10 def specs @specs end |
#tag ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'Library/Homebrew/cask/url.rb', line 10 def tag @tag end |
#trust_cert ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'Library/Homebrew/cask/url.rb', line 10 def trust_cert @trust_cert end |
#uri ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'Library/Homebrew/cask/url.rb', line 10 def uri @uri end |
#user_agent ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'Library/Homebrew/cask/url.rb', line 10 def user_agent @user_agent end |
#using ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'Library/Homebrew/cask/url.rb', line 10 def using @using end |