Class: JSONFactory::State

Inherits:
Object
  • Object
show all
Defined in:
lib/json_factory/state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(io, type, count = 0) ⇒ State

Returns a new instance of State.



7
8
9
10
11
# File 'lib/json_factory/state.rb', line 7

def initialize(io, type, count = 0)
  @io = io
  @type = type
  @count = count
end

Instance Attribute Details

#countObject

Returns the value of attribute count.



5
6
7
# File 'lib/json_factory/state.rb', line 5

def count
  @count
end

#ioObject

Returns the value of attribute io.



5
6
7
# File 'lib/json_factory/state.rb', line 5

def io
  @io
end

#typeObject

Returns the value of attribute type.



5
6
7
# File 'lib/json_factory/state.rb', line 5

def type
  @type
end