Sha256: 1b3c66a6bd2ddf2f23a5ea1b2e869fbb264092fbdf41be98f6813e9e27f4db09

Contents?: true

Size: 448 Bytes

Versions: 3

Compression:

Stored size: 448 Bytes

Contents

# frozen_string_literal: true

require 'addressable/uri'
require 'faraday'

module Spearly
  module Auth
    class Team
      attr_reader :attributes

      def initialize(attributes)
        @attributes = attributes
      end

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

      def to_json(*_args)
        @attributes.to_json
      end

      def as_json
        @attributes.as_json
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spearly-sdk-ruby-0.2.4 lib/spearly/auth/team.rb
spearly-sdk-ruby-0.2.3 lib/spearly/auth/team.rb
spearly-sdk-ruby-0.2.2 lib/spearly/auth/team.rb