Class: RubyUfc::Client
- Inherits:
-
Object
- Object
- RubyUfc::Client
- 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
-
#base_end_point ⇒ Object
readonly
Returns the value of attribute base_end_point.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize ⇒ Client
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_point ⇒ Object (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 |
#version ⇒ Object (readonly)
Returns the value of attribute version.
8 9 10 |
# File 'lib/ruby_ufc/client.rb', line 8 def version @version end |