Skip to Content Skip to Search
Methods
C
D
N
P
T

Attributes

[R] link_url

Class Public methods

data(link_url:, plan:, test:)

# File app/services/service/email_preparers/member/member_invite.rb, line 7
def self.data(link_url:, plan:, test:)
  super(link_url, plan, test: test)
end

new(link_url, plan)

# File app/services/service/email_preparers/member/member_invite.rb, line 11
def initialize(link_url, plan)
  @link_url = link_url
  @plan = plan
end

Instance Public methods

plan()

# File app/services/service/email_preparers/member/member_invite.rb, line 24
def plan
  if test?
    test_mock_plan
  else
    @plan
  end
end

test_mock_plan()

# File app/services/service/email_preparers/member/member_invite.rb, line 36
def test_mock_plan
  mock_klass({name: "[TEST PLAN]", paid?: true}).new
end

to_h()

# File app/services/service/email_preparers/member/member_invite.rb, line 16
def to_h
  {
    "confirmation_link" => confirmation_link,
    "confirmation_url" => link_url,
    "plan" => plan
  }
end