Class: Vng::ServiceType

Inherits:
Resource show all
Defined in:
lib/vng/service_type.rb

Overview

Provides methods to interact with Vonigo service types.

Constant Summary collapse

PATH =
'/api/v1/resources/serviceTypes/'

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#durationObject (readonly)

Returns the value of attribute duration.



8
9
10
# File 'lib/vng/service_type.rb', line 8

def duration
  @duration
end

#idObject (readonly)

Returns the value of attribute id.



8
9
10
# File 'lib/vng/service_type.rb', line 8

def id
  @id
end

#price_list_idObject (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

#typeObject (readonly)

Returns the value of attribute type.



8
9
10
# File 'lib/vng/service_type.rb', line 8

def type
  @type
end