class Lifen::Flows

Public Instance Methods

all() click to toggle source
# 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

Private Instance Methods

client() click to toggle source
# File lib/lifen/flows.rb, line 22
def client
  @client ||= user.client
end