Class: FakeDb
- Inherits:
-
Object
- Object
- FakeDb
- Defined in:
- lib/atig/command/command_helper.rb
Instance Attribute Summary collapse
-
#followings ⇒ Object
readonly
Returns the value of attribute followings.
-
#lists ⇒ Object
readonly
Returns the value of attribute lists.
-
#me ⇒ Object
readonly
Returns the value of attribute me.
-
#statuses ⇒ Object
readonly
Returns the value of attribute statuses.
Instance Method Summary collapse
-
#initialize(statuses, followings, lists, me) ⇒ FakeDb
constructor
A new instance of FakeDb.
- #transaction(&f) ⇒ Object
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
#followings ⇒ Object (readonly)
Returns the value of attribute followings.
42 43 44 |
# File 'lib/atig/command/command_helper.rb', line 42 def followings @followings end |
#lists ⇒ Object (readonly)
Returns the value of attribute lists.
42 43 44 |
# File 'lib/atig/command/command_helper.rb', line 42 def lists @lists end |
#me ⇒ Object (readonly)
Returns the value of attribute me.
42 43 44 |
# File 'lib/atig/command/command_helper.rb', line 42 def me @me end |
#statuses ⇒ Object (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 |