Sha256: a130ede60b93758238f861054f88814cf746cfbd5eb04ab37ae756fb12dde7c3
Contents?: true
Size: 883 Bytes
Versions: 4
Compression:
Stored size: 883 Bytes
Contents
module SlackRubyBotServer module Api module Presenters module TeamPresenter include Roar::JSON::HAL include Roar::Hypermedia include Grape::Roar::Representer property :id, type: String, desc: 'Team ID.' property :team_id, type: String, desc: 'Slack team ID.' property :name, type: String, desc: 'Team name.' property :domain, type: String, desc: 'Team domain.' property :active, type: ::Grape::API::Boolean, desc: 'Team is active.' property :created_at, type: DateTime, desc: 'Date/time when the team was created.' property :updated_at, type: DateTime, desc: 'Date/time when the team was accepted, declined or canceled.' link :self do |opts| request = Grape::Request.new(opts[:env]) "#{request.base_url}/api/teams/#{id}" end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems