Class: SDM::HTTPAuth
- Inherits:
-
Object
- Object
- SDM::HTTPAuth
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#auth_header ⇒ Object
Returns the value of attribute auth_header.
-
#default_path ⇒ Object
Returns the value of attribute default_path.
-
#headers_blacklist ⇒ Object
Returns the value of attribute headers_blacklist.
-
#healthcheck_path ⇒ Object
Returns the value of attribute healthcheck_path.
-
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
-
#id ⇒ Object
Unique identifier of the Resource.
-
#name ⇒ Object
Unique human-readable name of the Resource.
-
#subdomain ⇒ Object
Returns the value of attribute subdomain.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, url: nil, healthcheck_path: nil, auth_header: nil, headers_blacklist: nil, default_path: nil, subdomain: nil) ⇒ HTTPAuth
constructor
A new instance of HTTPAuth.
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, url: nil, healthcheck_path: nil, auth_header: nil, headers_blacklist: nil, default_path: nil, subdomain: nil) ⇒ HTTPAuth
Returns a new instance of HTTPAuth.
1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 |
# File 'lib/models/porcelain.rb', line 1073 def initialize( id:nil \ , name:nil \ , healthy:nil \ , url:nil \ , healthcheck_path:nil \ , auth_header:nil \ , headers_blacklist:nil \ , default_path:nil \ , subdomain:nil \ ) if id != nil @id = id end if name != nil @name = name end if healthy != nil @healthy = healthy end if url != nil @url = url end if healthcheck_path != nil @healthcheck_path = healthcheck_path end if auth_header != nil @auth_header = auth_header end if headers_blacklist != nil @headers_blacklist = headers_blacklist end if default_path != nil @default_path = default_path end if subdomain != nil @subdomain = subdomain end end |
Instance Attribute Details
#auth_header ⇒ Object
Returns the value of attribute auth_header.
1066 1067 1068 |
# File 'lib/models/porcelain.rb', line 1066 def auth_header @auth_header end |
#default_path ⇒ Object
Returns the value of attribute default_path.
1070 1071 1072 |
# File 'lib/models/porcelain.rb', line 1070 def default_path @default_path end |
#headers_blacklist ⇒ Object
Returns the value of attribute headers_blacklist.
1068 1069 1070 |
# File 'lib/models/porcelain.rb', line 1068 def headers_blacklist @headers_blacklist end |
#healthcheck_path ⇒ Object
Returns the value of attribute healthcheck_path.
1064 1065 1066 |
# File 'lib/models/porcelain.rb', line 1064 def healthcheck_path @healthcheck_path end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1060 1061 1062 |
# File 'lib/models/porcelain.rb', line 1060 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
1056 1057 1058 |
# File 'lib/models/porcelain.rb', line 1056 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1058 1059 1060 |
# File 'lib/models/porcelain.rb', line 1058 def name @name end |
#subdomain ⇒ Object
Returns the value of attribute subdomain.
1072 1073 1074 |
# File 'lib/models/porcelain.rb', line 1072 def subdomain @subdomain end |
#url ⇒ Object
Returns the value of attribute url.
1062 1063 1064 |
# File 'lib/models/porcelain.rb', line 1062 def url @url end |