Class: Me2API::FriendshipRequest

Inherits:
Model
  • Object
show all
Defined in:
lib/me2api/model/friendship_request.rb

Constant Summary

Constants inherited from Model

Model::FROM_OR_TO_REGEX

Instance Method Summary collapse

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