Class: FakeDb

Inherits:
Object
  • Object
show all
Defined in:
lib/atig/command/command_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(statuses, followings, lists, me) ⇒ FakeDb

Returns a new instance of FakeDb.



43
44
45
46
47
48
# File 'lib/atig/command/command_helper.rb', line 43

def initialize(statuses, followings,lists, me)
  @statuses = statuses
  @followings = followings
  @lists = lists
  @me = me
end

Instance Attribute Details

#followingsObject (readonly)

Returns the value of attribute followings.



42
43
44
# File 'lib/atig/command/command_helper.rb', line 42

def followings
  @followings
end

#listsObject (readonly)

Returns the value of attribute lists.



42
43
44
# File 'lib/atig/command/command_helper.rb', line 42

def lists
  @lists
end

#meObject (readonly)

Returns the value of attribute me.



42
43
44
# File 'lib/atig/command/command_helper.rb', line 42

def me
  @me
end

#statusesObject (readonly)

Returns the value of attribute statuses.



42
43
44
# File 'lib/atig/command/command_helper.rb', line 42

def statuses
  @statuses
end

Instance Method Details

#transaction(&f) ⇒ Object



50
51
52
# File 'lib/atig/command/command_helper.rb', line 50

def transaction(&f)
  f.call self
end