Class: Dota::API::Friend
Instance Attribute Summary
Attributes inherited from Entity
#raw
Instance Method Summary
collapse
Methods inherited from Entity
#initialize
#inspect
Instance Method Details
#friended_at ⇒ Object
12
13
14
|
# File 'lib/dota/api/friend.rb', line 12
def friended_at
Time.at(raw["friend_since"])
end
|
#id ⇒ Object
4
5
6
|
# File 'lib/dota/api/friend.rb', line 4
def id
raw["steamid"].to_i
end
|
#relationship ⇒ Object
8
9
10
|
# File 'lib/dota/api/friend.rb', line 8
def relationship
raw["relationship"]
end
|