Returns invoice attributes for mobile api.
# File app/models/concerns/mobile_api/invoice.rb, line 7 def as_mobile_api if invoiceable.is_a? TutoringSession attributes.merge( rate_in_cents: invoiceable.rate_in_cents, session_length: invoiceable.length ) else attributes end end