Method: Seatsio::Month.from_json
- Defined in:
- lib/seatsio/domain.rb
.from_json(data) ⇒ Object
520 521 522 523 524 |
# File 'lib/seatsio/domain.rb', line 520 def self.from_json(data) @year = data['year'] @month = data['month'] self end |