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.
1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 |
# File 'lib/models/porcelain.rb', line 1293 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.
1289 1290 1291 |
# File 'lib/models/porcelain.rb', line 1289 def default_path @default_path end |
#headers_blacklist ⇒ Object
Returns the value of attribute headers_blacklist.
1287 1288 1289 |
# File 'lib/models/porcelain.rb', line 1287 def headers_blacklist @headers_blacklist end |
#healthcheck_path ⇒ Object
Returns the value of attribute healthcheck_path.
1281 1282 1283 |
# File 'lib/models/porcelain.rb', line 1281 def healthcheck_path @healthcheck_path end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1275 1276 1277 |
# File 'lib/models/porcelain.rb', line 1275 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
1271 1272 1273 |
# File 'lib/models/porcelain.rb', line 1271 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1273 1274 1275 |
# File 'lib/models/porcelain.rb', line 1273 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
1285 1286 1287 |
# File 'lib/models/porcelain.rb', line 1285 def password @password end |
#subdomain ⇒ Object
Returns the value of attribute subdomain.
1291 1292 1293 |
# File 'lib/models/porcelain.rb', line 1291 def subdomain @subdomain end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1277 1278 1279 |
# File 'lib/models/porcelain.rb', line 1277 def @tags end |
#url ⇒ Object
Returns the value of attribute url.
1279 1280 1281 |
# File 'lib/models/porcelain.rb', line 1279 def url @url end |
#username ⇒ Object
Returns the value of attribute username.
1283 1284 1285 |
# File 'lib/models/porcelain.rb', line 1283 def username @username end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1341 1342 1343 1344 1345 1346 1347 |
# File 'lib/models/porcelain.rb', line 1341 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 |