Exception: Organizations::NotAMember

Inherits:
Error
  • Object
show all
Defined in:
lib/organizations.rb

Overview

Membership errors - raised when user is not a member

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, organization: nil, user: nil) ⇒ NotAMember

Returns a new instance of NotAMember.



31
32
33
34
35
# File 'lib/organizations.rb', line 31

def initialize(message = nil, organization: nil, user: nil)
  super(message)
  @organization = organization
  @user = user
end

Instance Attribute Details

#organizationObject (readonly)

Returns the value of attribute organization.



29
30
31
# File 'lib/organizations.rb', line 29

def organization
  @organization
end

#userObject (readonly)

Returns the value of attribute user.



29
30
31
# File 'lib/organizations.rb', line 29

def user
  @user
end