Sha256: 2d54f4ed0c44a2ea363dfb0d628d74e9c00eba5f7c00e36b6b1be72d7cea2967

Contents?: true

Size: 293 Bytes

Versions: 6

Compression:

Stored size: 293 Bytes

Contents

module Calendlyr
  class Availabilities::UserSchedule < Object
    def associated_user
      client.users.retrieve(uuid: get_slug(user))
    end

    def availability_rules
      rules.map do |rule|
        Availabilities::Rule.new(rule.to_h.merge(client: client))
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
calendlyr-0.7.5 lib/calendlyr/objects/availabilities/user_schedule.rb
calendlyr-0.7.4 lib/calendlyr/objects/availabilities/user_schedule.rb
calendlyr-0.7.3 lib/calendlyr/objects/availabilities/user_schedule.rb
calendlyr-0.7.2 lib/calendlyr/objects/availabilities/user_schedule.rb
calendlyr-0.7.1 lib/calendlyr/objects/availabilities/user_schedule.rb
calendlyr-0.7.0 lib/calendlyr/objects/availabilities/user_schedule.rb