Class: Postmen::ServiceOptionGeneral

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/postmen/service_option_general.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Common

#to_hash

Constructor Details

#initialize(options) ⇒ ServiceOptionGeneral

Returns a new instance of ServiceOptionGeneral.



8
9
10
11
# File 'lib/postmen/service_option_general.rb', line 8

def initialize(options)
  @type = options[:type]
  @enabled = options[:enabled]
end

Instance Attribute Details

#enabledObject (readonly)

Returns the value of attribute enabled.



5
6
7
# File 'lib/postmen/service_option_general.rb', line 5

def enabled
  @enabled
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/postmen/service_option_general.rb', line 5

def type
  @type
end