Class: Jumbotron::Deserializers::Clients::Espn::Week

Inherits:
Object
  • Object
show all
Defined in:
app/deserializers/jumbotron/deserializers/clients/espn/week.rb

Defined Under Namespace

Classes: Result

Class Method Summary collapse

Class Method Details

.call(payload) ⇒ Object



12
13
14
15
16
17
18
# File 'app/deserializers/jumbotron/deserializers/clients/espn/week.rb', line 12

def self.call(payload)
  Support.ensure_hash!(payload, label: "week")

  Result.build!(
    number: Support.payload.fetch(payload, "number")
  )
end