Class: Lifen::Flows

Inherits:
Base
  • Object
show all
Defined in:
lib/lifen/flows.rb

Instance Method Summary collapse

Instance Method Details

#allObject



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/lifen/flows.rb', line 7

def all
  json = client.get("central/api/chats")

  json["_embedded"]["flows"].each do |element|
    flow = Flow.new(element)
    flow.user = user

    elements << flow
  end

  elements
end