Class: SDM::HTTPNoAuth
- Inherits:
-
Object
- Object
- SDM::HTTPNoAuth
- 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.
-
#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.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, healthy: nil, tags: nil, url: nil, healthcheck_path: nil, headers_blacklist: nil, default_path: nil, subdomain: nil) ⇒ HTTPNoAuth
constructor
A new instance of HTTPNoAuth.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, healthy: nil, tags: nil, url: nil, healthcheck_path: nil, headers_blacklist: nil, default_path: nil, subdomain: nil) ⇒ HTTPNoAuth
Returns a new instance of HTTPNoAuth.
1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 |
# File 'lib/models/porcelain.rb', line 1370 def initialize( id: nil, name: nil, healthy: nil, tags: nil, url: nil, healthcheck_path: 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 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.
1366 1367 1368 |
# File 'lib/models/porcelain.rb', line 1366 def default_path @default_path end |
#headers_blacklist ⇒ Object
Returns the value of attribute headers_blacklist.
1364 1365 1366 |
# File 'lib/models/porcelain.rb', line 1364 def headers_blacklist @headers_blacklist end |
#healthcheck_path ⇒ Object
Returns the value of attribute healthcheck_path.
1362 1363 1364 |
# File 'lib/models/porcelain.rb', line 1362 def healthcheck_path @healthcheck_path end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1356 1357 1358 |
# File 'lib/models/porcelain.rb', line 1356 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
1352 1353 1354 |
# File 'lib/models/porcelain.rb', line 1352 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1354 1355 1356 |
# File 'lib/models/porcelain.rb', line 1354 def name @name end |
#subdomain ⇒ Object
Returns the value of attribute subdomain.
1368 1369 1370 |
# File 'lib/models/porcelain.rb', line 1368 def subdomain @subdomain end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1358 1359 1360 |
# File 'lib/models/porcelain.rb', line 1358 def @tags end |
#url ⇒ Object
Returns the value of attribute url.
1360 1361 1362 |
# File 'lib/models/porcelain.rb', line 1360 def url @url end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1410 1411 1412 1413 1414 1415 1416 |
# File 'lib/models/porcelain.rb', line 1410 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 |