Class: SDM::HTTPBasicAuth
- Inherits:
-
Object
- Object
- SDM::HTTPBasicAuth
- Defined in:
- lib/models/porcelain.rb
Instance Attribute Summary collapse
-
#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.
-
#password ⇒ Object
Returns the value of attribute password.
-
#subdomain ⇒ Object
Returns the value of attribute subdomain.
-
#tags ⇒ Object
Tags is a map of key, value pairs.
-
#url ⇒ Object
Returns the value of attribute url.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, tags: nil, url: nil, healthcheck_path: nil, username: nil, password: nil, headers_blacklist: nil, default_path: nil, subdomain: nil) ⇒ HTTPBasicAuth
constructor
A new instance of HTTPBasicAuth.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, tags: nil, url: nil, healthcheck_path: nil, username: nil, password: nil, headers_blacklist: nil, default_path: nil, subdomain: nil) ⇒ HTTPBasicAuth
Returns a new instance of HTTPBasicAuth.
1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 |
# File 'lib/models/porcelain.rb', line 1241 def initialize( id: nil, name: nil, healthy: nil, tags: nil, url: nil, healthcheck_path: nil, username: nil, password: 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 != nil @tags = end if url != nil @url = url end if healthcheck_path != nil @healthcheck_path = healthcheck_path end if username != nil @username = username end if password != nil @password = password 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
#default_path ⇒ Object
Returns the value of attribute default_path.
1237 1238 1239 |
# File 'lib/models/porcelain.rb', line 1237 def default_path @default_path end |
#headers_blacklist ⇒ Object
Returns the value of attribute headers_blacklist.
1235 1236 1237 |
# File 'lib/models/porcelain.rb', line 1235 def headers_blacklist @headers_blacklist end |
#healthcheck_path ⇒ Object
Returns the value of attribute healthcheck_path.
1229 1230 1231 |
# File 'lib/models/porcelain.rb', line 1229 def healthcheck_path @healthcheck_path end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1223 1224 1225 |
# File 'lib/models/porcelain.rb', line 1223 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
1219 1220 1221 |
# File 'lib/models/porcelain.rb', line 1219 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1221 1222 1223 |
# File 'lib/models/porcelain.rb', line 1221 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
1233 1234 1235 |
# File 'lib/models/porcelain.rb', line 1233 def password @password end |
#subdomain ⇒ Object
Returns the value of attribute subdomain.
1239 1240 1241 |
# File 'lib/models/porcelain.rb', line 1239 def subdomain @subdomain end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1225 1226 1227 |
# File 'lib/models/porcelain.rb', line 1225 def @tags end |
#url ⇒ Object
Returns the value of attribute url.
1227 1228 1229 |
# File 'lib/models/porcelain.rb', line 1227 def url @url end |
#username ⇒ Object
Returns the value of attribute username.
1231 1232 1233 |
# File 'lib/models/porcelain.rb', line 1231 def username @username end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1289 1290 1291 1292 1293 1294 1295 |
# File 'lib/models/porcelain.rb', line 1289 def to_json( = {}) hash = {} self.instance_variables.each do |var| hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var end hash.to_json end |