Sha256: 4dbde27bfc46cac7c487d5df3b88ff71055f351dab990f5d6c05286ac9e39f77

Contents?: true

Size: 326 Bytes

Versions: 5

Compression:

Stored size: 326 Bytes

Contents

# Simple class for service structure
class BungieClient::Service
  attr_reader :method_type, :name, :endpoint

  def initialize(options)
    @method_type = ((%w(get post).include? options[:method]) ? options[:method] : 'get')
    @name        = options[:name].to_s
    @endpoint    = options[:endpoint].to_s
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bungie_client-1.1.1 lib/bungie_client/service.rb
bungie_client-1.1.0 lib/bungie_client/service.rb
bungie_client-1.0.3 lib/bungie_client/service.rb
bungie_client-1.0.2 lib/bungie_client/service.rb
bungie_client-1.0.0 lib/bungie_client/service.rb