Class: Altria::Proprietary::Property

Inherits:
Object
  • Object
show all
Defined in:
lib/altria/proprietary.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options = {}) ⇒ Property

Returns a new instance of Property.



47
48
49
# File 'lib/altria/proprietary.rb', line 47

def initialize(name, options = {})
  @name, @options = name, options
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



45
46
47
# File 'lib/altria/proprietary.rb', line 45

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



45
46
47
# File 'lib/altria/proprietary.rb', line 45

def options
  @options
end

Instance Method Details

#typeObject



51
52
53
# File 'lib/altria/proprietary.rb', line 51

def type
  options[:type] || :string
end