Exception: Organizations::NotAMember
- Defined in:
- lib/organizations.rb
Overview
Membership errors - raised when user is not a member
Instance Attribute Summary collapse
-
#organization ⇒ Object
readonly
Returns the value of attribute organization.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(message = nil, organization: nil, user: nil) ⇒ NotAMember
constructor
A new instance of NotAMember.
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( = nil, organization: nil, user: nil) super() @organization = organization @user = user end |
Instance Attribute Details
#organization ⇒ Object (readonly)
Returns the value of attribute organization.
29 30 31 |
# File 'lib/organizations.rb', line 29 def organization @organization end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
29 30 31 |
# File 'lib/organizations.rb', line 29 def user @user end |