Class: Me2API::FriendshipRequest
- Defined in:
- lib/me2api/model/friendship_request.rb
Constant Summary
Constants inherited from Model
Instance Method Summary collapse
-
#initialize(hash) ⇒ FriendshipRequest
constructor
A new instance of FriendshipRequest.
Methods inherited from Model
#[]=, #id, #iso8601_time, #method_missing, #type, #underscore, wrap
Constructor Details
#initialize(hash) ⇒ FriendshipRequest
Returns a new instance of FriendshipRequest.
3 4 5 6 7 8 |
# File 'lib/me2api/model/friendship_request.rb', line 3 def initialize(hash) super(hash) self[:from] = Person.new(self.from) self[:to] = Person.new(self.to) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Me2API::Model