Class: Account::Inviter::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/account/inviter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(invited: nil, email: nil, account: nil, messages: []) ⇒ Result

Returns a new instance of Result.



4
# File 'app/services/account/inviter.rb', line 4

def initialize(invited: nil, email: nil, account: nil, messages: []) = super

Instance Attribute Details

#accountObject (readonly)

Returns the value of attribute account

Returns:

  • (Object)

    the current value of account



3
4
5
# File 'app/services/account/inviter.rb', line 3

def 
  @account
end

#emailObject (readonly)

Returns the value of attribute email

Returns:

  • (Object)

    the current value of email



3
4
5
# File 'app/services/account/inviter.rb', line 3

def email
  @email
end

#invitedObject (readonly)

Returns the value of attribute invited

Returns:

  • (Object)

    the current value of invited



3
4
5
# File 'app/services/account/inviter.rb', line 3

def invited
  @invited
end

#messagesObject (readonly)

Returns the value of attribute messages

Returns:

  • (Object)

    the current value of messages



3
4
5
# File 'app/services/account/inviter.rb', line 3

def messages
  @messages
end

Instance Method Details

#invited?Boolean

Returns:

  • (Boolean)


5
# File 'app/services/account/inviter.rb', line 5

def invited? = invited