Sha256: 72bd31b0c9f23a6093b5b4991273a68597129ceeb050d125cdfd49b954217800

Contents?: true

Size: 361 Bytes

Versions: 4

Compression:

Stored size: 361 Bytes

Contents

# frozen_string_literal: true

module Spearly
  module Auth
    class Team
      attr_reader :data

      def initialize(data)
        @data = data
      end

      def method_missing(name, *_args)
        @data[name.to_s]
      end

      def to_json(*_args)
        @data.to_json
      end

      def as_json
        @data.as_json
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spearly-sdk-ruby-0.8.0 lib/spearly/auth/team.rb
spearly-sdk-ruby-0.7.0 lib/spearly/auth/team.rb
spearly-sdk-ruby-0.6.0 lib/spearly/auth/team.rb
spearly-sdk-ruby-0.5.0 lib/spearly/auth/team.rb