class Bronto::Field
Attributes
id[RW]
label[RW]
name[RW]
type[RW]
visibility[RW]
Public Instance Methods
to_hash()
click to toggle source
# 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