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.
1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 |
# File 'lib/models/porcelain.rb', line 1264 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.
1261 1262 1263 |
# File 'lib/models/porcelain.rb', line 1261 def default_path @default_path end |
#headers_blacklist ⇒ Object
Returns the value of attribute headers_blacklist.
1259 1260 1261 |
# File 'lib/models/porcelain.rb', line 1259 def headers_blacklist @headers_blacklist end |
#healthcheck_path ⇒ Object
Returns the value of attribute healthcheck_path.
1257 1258 1259 |
# File 'lib/models/porcelain.rb', line 1257 def healthcheck_path @healthcheck_path end |
#healthy ⇒ Object
True if the datasource is reachable and the credentials are valid.
1251 1252 1253 |
# File 'lib/models/porcelain.rb', line 1251 def healthy @healthy end |
#id ⇒ Object
Unique identifier of the Resource.
1247 1248 1249 |
# File 'lib/models/porcelain.rb', line 1247 def id @id end |
#name ⇒ Object
Unique human-readable name of the Resource.
1249 1250 1251 |
# File 'lib/models/porcelain.rb', line 1249 def name @name end |
#subdomain ⇒ Object
Returns the value of attribute subdomain.
1263 1264 1265 |
# File 'lib/models/porcelain.rb', line 1263 def subdomain @subdomain end |
#tags ⇒ Object
Tags is a map of key, value pairs.
1253 1254 1255 |
# File 'lib/models/porcelain.rb', line 1253 def @tags end |
#url ⇒ Object
Returns the value of attribute url.
1255 1256 1257 |
# File 'lib/models/porcelain.rb', line 1255 def url @url end |
Instance Method Details
#to_json(options = {}) ⇒ Object
1311 1312 1313 1314 1315 1316 1317 |
# File 'lib/models/porcelain.rb', line 1311 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 |