Class: Marver::KeyDate

Inherits:
Object
  • Object
show all
Defined in:
lib/marver/entities/key_date.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ KeyDate

Returns a new instance of KeyDate.



5
6
7
8
# File 'lib/marver/entities/key_date.rb', line 5

def initialize(json)
  @type = json['type']
  @date = Date.parse(json['date'])
end

Instance Attribute Details

#dateObject (readonly)

Returns the value of attribute date.



3
4
5
# File 'lib/marver/entities/key_date.rb', line 3

def date
  @date
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/marver/entities/key_date.rb', line 3

def type
  @type
end