Sha256: a52082260d7e3d317f1770c80abd75f4eb896a77f19adf463d9f50fe18ea16be
Contents?: true
Size: 436 Bytes
Versions: 26
Compression:
Stored size: 436 Bytes
Contents
module Lifen class Flows < Base attribute :user, Lifen::User attribute :elements, Array[Lifen::Flow], default: [] 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 def client @client ||= user.client end end end
Version data entries
26 entries across 26 versions & 1 rubygems