class BigShift::TableField
Attributes
field_name[R]
field_type[R]
Public Class Methods
new(field_name, field_type)
click to toggle source
# File lib/big_shift/models/table_field.rb, line 6 def initialize(field_name, field_type) @field_name = field_name @field_type = field_type end
Public Instance Methods
as_json(json_state = nil)
click to toggle source
# File lib/big_shift/models/table_field.rb, line 11 def as_json(json_state = nil) { :name => @field_name, :type => @field_type, } end