Class: Account::Inviter::Result

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

Overview

Service object: result.

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.



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

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



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

def 
  @account
end

#emailObject (readonly)

Returns the value of attribute email

Returns:

  • (Object)

    the current value of email



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

def email
  @email
end

#invitedObject (readonly)

Returns the value of attribute invited

Returns:

  • (Object)

    the current value of invited



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

def invited
  @invited
end

#messagesObject (readonly)

Returns the value of attribute messages

Returns:

  • (Object)

    the current value of messages



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

def messages
  @messages
end

Instance Method Details

#invited?Boolean

Returns:

  • (Boolean)


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

def invited? = invited