Module: Ubiquitously::Ownable::Post::InstanceMethods

Defined in:
lib/ubiquitously/models/service/post/ownable.rb

Instance Method Summary collapse

Instance Method Details

#agentObject



13
14
15
# File 'lib/ubiquitously/models/service/post/ownable.rb', line 13

def agent
  user.agent
end

#authorizeObject



25
26
27
# File 'lib/ubiquitously/models/service/post/ownable.rb', line 25

def authorize
  user.(service)
end

#passwordObject



21
22
23
# File 'lib/ubiquitously/models/service/post/ownable.rb', line 21

def password
  user.password_for(self)
end

#usernameObject



17
18
19
# File 'lib/ubiquitously/models/service/post/ownable.rb', line 17

def username
  user.username_for(self)
end