class Responsys::Api::Object::Field
Attributes
custom[RW]
data_extraction_key[RW]
field_name[RW]
field_type[RW]
Public Class Methods
new(field_name, field_type, custom = false, data_extraction_key = false)
click to toggle source
# File lib/responsys/api/object/field.rb, line 7 def initialize(field_name, field_type, custom = false, data_extraction_key = false) @field_name = field_name @field_type = field_type @custom = custom @data_extraction_key = data_extraction_key end
Public Instance Methods
to_api()
click to toggle source
# File lib/responsys/api/object/field.rb, line 14 def to_api { fieldName: @field_name, fieldType: @field_type.to_api, custom: @custom, dataExtractionKey: @data_extraction_key } end