Class: CapsuleCRM::CustomField
- Defined in:
- lib/capsulecrm/custom_field.rb
Instance Attribute Summary collapse
-
#boolean ⇒ Object
Returns the value of attribute boolean.
-
#date ⇒ Object
Returns the value of attribute date.
-
#label ⇒ Object
Returns the value of attribute label.
-
#text ⇒ Object
Returns the value of attribute text.
Attributes inherited from Child
Attributes inherited from Base
Class Method Summary collapse
-
.xml_map ⇒ Object
nodoc.
Instance Method Summary collapse
-
#value ⇒ Object
nodoc.
Methods inherited from Child
init_many, init_one, #initialize
Methods inherited from Base
#==, #errors, find, #initialize, last_response, #new_record?
Constructor Details
This class inherits a constructor from CapsuleCRM::Child
Instance Attribute Details
#boolean ⇒ Object
Returns the value of attribute boolean.
3 4 5 |
# File 'lib/capsulecrm/custom_field.rb', line 3 def boolean @boolean end |
#date ⇒ Object
Returns the value of attribute date.
4 5 6 |
# File 'lib/capsulecrm/custom_field.rb', line 4 def date @date end |
#label ⇒ Object
Returns the value of attribute label.
5 6 7 |
# File 'lib/capsulecrm/custom_field.rb', line 5 def label @label end |
#text ⇒ Object
Returns the value of attribute text.
6 7 8 |
# File 'lib/capsulecrm/custom_field.rb', line 6 def text @text end |
Class Method Details
.xml_map ⇒ Object
nodoc
30 31 32 33 34 35 36 37 38 |
# File 'lib/capsulecrm/custom_field.rb', line 30 def self.xml_map map = { 'label' => 'label', 'text' => 'text', 'date' => 'date', 'boolean' => 'boolean' } super.merge map end |
Instance Method Details
#value ⇒ Object
nodoc
24 25 26 |
# File 'lib/capsulecrm/custom_field.rb', line 24 def value date || text || boolean end |