Sha256: ff25b312ce24c5eaf4a88c08c43455abb3da79ac8242b7981abed1f42dd2b1c9

Contents?: true

Size: 199 Bytes

Versions: 5

Compression:

Stored size: 199 Bytes

Contents

module CodewarsApi
  module Common
    def success
      @response.to_h['success']
    end

    def reason
      @response.to_h['reason']
    end

    def to_h
      @response.to_h
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
codewars_api-0.4.2 lib/codewars_api/common.rb
codewars_api-0.4.1 lib/codewars_api/common.rb
codewars_api-0.4.0 lib/codewars_api/common.rb
codewars_api-0.3.0 lib/codewars_api/common.rb
codewars_api-0.2.1 lib/codewars_api/common.rb