class ZanoxPublisher::Prize

Wrapper for the prizes response from Zanox API

Attributes

count[R]
description[R]
id[R]
name[R]
rank[R]

Public Class Methods

new(data = {}) click to toggle source
# File lib/zanox_publisher/prize.rb, line 6
def initialize(data = {})
  @id           = data.fetch('@id')
  @name         = data.fetch('name')
  @description  = data.fetch('description')
  @count        = data.fetch('count')
  @rank         = data.fetch('rank')
end

Public Instance Methods

to_i() click to toggle source
# File lib/zanox_publisher/prize.rb, line 14
def to_i
  @id
end