Class: RubyUfc::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_ufc/client.rb

Overview

:nodoc:

Constant Summary collapse

ALLOWED_RESOURCES =
%w[fighters octagon_girls events news media].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeClient

Returns a new instance of Client.



10
11
12
13
14
# File 'lib/ruby_ufc/client.rb', line 10

def initialize
  config_params = YAML.load_file('lib/config/config.yml')
  @base_end_point = config_params['base_end_point']
  @version = config_params['version']
end

Instance Attribute Details

#base_end_pointObject (readonly)

Returns the value of attribute base_end_point.



8
9
10
# File 'lib/ruby_ufc/client.rb', line 8

def base_end_point
  @base_end_point
end

#versionObject (readonly)

Returns the value of attribute version.



8
9
10
# File 'lib/ruby_ufc/client.rb', line 8

def version
  @version
end