Module: FacebookStub

Extended by:
FacebookStub
Included in:
FacebookStub
Defined in:
lib/facebook_stub.rb,
lib/facebook_stub/engine.rb,
lib/facebook_stub/version.rb

Defined Under Namespace

Classes: Engine

Constant Summary collapse

BASE_INFO =
{
  "name"          => "Gandalf the Grey",
  "location"      => {
    "name"        => "San Francisco, California",
    "city"        => "San Francisco",
    "zip"         => "94107",
    "country"     => "United States",
    "id"          => 114952118516947,
    "state"       => "California"
  },
  "timezone"      =>  -8,
  "gender"        => "male",
  "id"            => "234567898765432",
  "birthday"      => "07/21/1954",
  "updated_time"  => "2011-02-10T00:40:26+0000",
  "verified"      => true,
  "locale"        => "en_US",
  "religion"      => "Wikipedia",
  "bio"           => "The greatest thing you'll ever learn is just to love and be loved in return.\r\n\r\nIf hearing the name Sharon Salinger causes you physical pain and emotional trauma then we are friends.\r\n\r\nMy life has a great cast but I can't figure out the plot.",
  "hometown"      => { "name" => nil, "id" => "" },
  "link"          => "http://www.facebook.com/gandalf.the.grey",
  "political"     => "Fellowship",
  "email"         => "[email protected]",
  "first_name"    => "Gandalf",
  "middle_name"   => "the",
  "last_name"     => "Grey"
}
VERSION =
"0.0.2.1"

Instance Method Summary collapse

Instance Method Details

#infoObject



41
42
43
# File 'lib/facebook_stub.rb', line 41

def info
  @info
end

#invalid!Object



45
46
47
# File 'lib/facebook_stub.rb', line 45

def invalid!
  @info = {}
end

#reset!Object



36
37
38
39
# File 'lib/facebook_stub.rb', line 36

def reset!
  # Marshal to force a deep copy
  @info = Marshal.load(Marshal.dump(BASE_INFO))
end