Class: CustomAttribute

Inherits:
ContactAttribute show all
Defined in:
app/models/custom_attribute.rb

Constant Summary

Constants inherited from ContactAttribute

ContactAttribute::AVAILABLE_TYPES

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ContactAttribute

#_create, #always_public?, #id, #id=, #json_root, #new_record?, #to_key

Methods included from ContactAttribute::CustomKeys

#async_custom_keys, #custom_keys

Instance Attribute Details

#nameObject

Returns the value of attribute name.



10
11
12
# File 'app/models/custom_attribute.rb', line 10

def name
  @name
end

#primaryObject

Returns the value of attribute primary.



10
11
12
# File 'app/models/custom_attribute.rb', line 10

def primary
  @primary
end

#publicObject

Returns the value of attribute public.



10
11
12
# File 'app/models/custom_attribute.rb', line 10

def public
  @public
end

#valueObject

Returns the value of attribute value.



10
11
12
# File 'app/models/custom_attribute.rb', line 10

def value
  @value
end

Instance Method Details

#_typeObject



12
13
14
# File 'app/models/custom_attribute.rb', line 12

def _type
  self.class.name
end