lib/sportradar/api/mma/result.rb in sportradar-api-0.19.6 vs lib/sportradar/api/mma/result.rb in sportradar-api-0.20.0.pre
- old
+ new
@@ -1,8 +1,8 @@
module Sportradar
module Api
- class Mma
+ module Mma
class Result < Data
attr_accessor :response, :id, :round, :time, :outcome, :submission, :endstrike, :endtarget, :endposition, :winner, :draw
def initialize(data, **opts)
@response = data
@@ -63,6 +63,6 @@
sc = m.schedule;
e = sc.events.sample;
e.fights.first.fighters.first.born
fighter_hash = {'id' => "259117dc-c443-4086-8c1d-abd082e3d4b9" } # => Conor McGregor
-f = Sportradar::Api::Mma::Fighter.new(fighter_hash)
\ No newline at end of file
+f = Sportradar::Api::Mma::Fighter.new(fighter_hash)