Class: DocSmoosher::Field

Inherits:
ApiObject show all
Defined in:
lib/doc_smoosher/field.rb

Instance Attribute Summary collapse

Attributes inherited from ApiObject

#description, #name

Attributes included from Parameters

#parameters, #resource

Instance Method Summary collapse

Methods included from Parameters

#parameter

Constructor Details

#initialize(params = {}, &block) ⇒ Field

Returns a new instance of Field.



5
6
7
8
9
10
# File 'lib/doc_smoosher/field.rb', line 5

def initialize(params = {}, &block)
  # Defaults
  self.required = false

  super(params)
end

Instance Attribute Details

#defaultObject

Returns the value of attribute default.



3
4
5
# File 'lib/doc_smoosher/field.rb', line 3

def default
  @default
end

#exampleObject

Returns the value of attribute example.



3
4
5
# File 'lib/doc_smoosher/field.rb', line 3

def example
  @example
end

#maxObject

Returns the value of attribute max.



3
4
5
# File 'lib/doc_smoosher/field.rb', line 3

def max
  @max
end

#minObject

Returns the value of attribute min.



3
4
5
# File 'lib/doc_smoosher/field.rb', line 3

def min
  @min
end

#requiredObject

Returns the value of attribute required.



3
4
5
# File 'lib/doc_smoosher/field.rb', line 3

def required
  @required
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/doc_smoosher/field.rb', line 3

def type
  @type
end