Class: Bronto::Field
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#label ⇒ Object
Returns the value of attribute label.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
-
#visibility ⇒ Object
Returns the value of attribute visibility.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
api, api_key, api_key=, #create, create, #destroy, destroy, find, #initialize, plural_class_name, #reload, request, #request, #save, save, soap_header, update, #update
Constructor Details
This class inherits a constructor from Bronto::Base
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/bronto/field.rb', line 3 def id @id end |
#label ⇒ Object
Returns the value of attribute label.
3 4 5 |
# File 'lib/bronto/field.rb', line 3 def label @label end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/bronto/field.rb', line 3 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/bronto/field.rb', line 3 def type @type end |
#visibility ⇒ Object
Returns the value of attribute visibility.
3 4 5 |
# File 'lib/bronto/field.rb', line 3 def visibility @visibility end |
Instance Method Details
#to_hash ⇒ Object
5 6 7 8 9 |
# File 'lib/bronto/field.rb', line 5 def to_hash hash = { name: name, label: label, type: type, visibility: visibility } hash[:id] = id if id.present? hash end |