Class: Vng::ServiceType
Overview
Provides methods to interact with Vonigo service types.
Constant Summary collapse
- PATH =
'/api/v1/resources/serviceTypes/'
Instance Attribute Summary collapse
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#price_list_id ⇒ Object
readonly
Returns the value of attribute price_list_id.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(id:, type:, duration:, price_list_id:) ⇒ ServiceType
constructor
A new instance of ServiceType.
Constructor Details
#initialize(id:, type:, duration:, price_list_id:) ⇒ ServiceType
Returns a new instance of ServiceType.
10 11 12 13 14 15 |
# File 'lib/vng/service_type.rb', line 10 def initialize(id:, type:, duration:, price_list_id:) @id = id @type = type @duration = duration @price_list_id = price_list_id end |
Instance Attribute Details
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
8 9 10 |
# File 'lib/vng/service_type.rb', line 8 def duration @duration end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/vng/service_type.rb', line 8 def id @id end |
#price_list_id ⇒ Object (readonly)
Returns the value of attribute price_list_id.
8 9 10 |
# File 'lib/vng/service_type.rb', line 8 def price_list_id @price_list_id end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/vng/service_type.rb', line 8 def type @type end |