Class: SirvRestApi::PlanPrice

Inherits:
Object
  • Object
show all
Defined in:
lib/sirv_rest_api/models.rb

Overview

Plan price

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ PlanPrice

Returns a new instance of PlanPrice.



83
84
85
86
87
# File 'lib/sirv_rest_api/models.rb', line 83

def initialize(data = {})
  @month = data["month"]
  @year = data["year"]
  @quarter = data["quarter"]
end

Instance Attribute Details

#monthObject

Returns the value of attribute month.



81
82
83
# File 'lib/sirv_rest_api/models.rb', line 81

def month
  @month
end

#quarterObject

Returns the value of attribute quarter.



81
82
83
# File 'lib/sirv_rest_api/models.rb', line 81

def quarter
  @quarter
end

#yearObject

Returns the value of attribute year.



81
82
83
# File 'lib/sirv_rest_api/models.rb', line 81

def year
  @year
end