Completed
Pull Request — master (#372)
by
unknown
03:24
created

Firehose   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 15
rs 10
wmc 4

3 Methods

Rating   Name   Duplication   Size   Complexity  
A id() 0 3 2
A resource_via_client() 0 3 1
A initialize() 0 4 1
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