Class: Lifen::Flows
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
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 |