Module: Mockolate::Parameters::Attributes::Types

Included in:
Parser
Defined in:
lib/mockolate/parameters/attributes/types.rb

Instance Method Summary collapse

Instance Method Details

#integer(name) ⇒ Object



11
12
13
14
15
# File 'lib/mockolate/parameters/attributes/types.rb', line 11

def integer(name)
  class_variable_get(:@@_public_attributes).merge!(
    name.to_sym => {value: 0, type: :integer}
  )
end

#string(name) ⇒ Object



5
6
7
8
9
# File 'lib/mockolate/parameters/attributes/types.rb', line 5

def string(name)
  # class_variable_get(:@@_public_attributes).merge!(
    {value: '', type: :string}
  # )
end