| Total Complexity | 4 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | module Awspec::Type |
||
| 2 | class Firehose < ResourceBase |
||
| 3 | |||
| 4 | def initialize(name) |
||
| 5 | super |
||
| 6 | @delivery_stream_name = name |
||
| 7 | end |
||
| 8 | |||
| 9 | def resource_via_client |
||
| 10 | @resource_via_client ||= find_delivery_stream(@delivery_stream_name) |
||
| 11 | end |
||
| 12 | |||
| 13 | def id |
||
| 14 | @id ||= @delivery_stream_name if resource_via_client |
||
| 15 | end |
||
| 16 | end |
||
| 17 | end |
||
| 18 |