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

Firehose.initialize()   A

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 4
rs 10
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