Sha256: e961198751ae63ac3c73968fc6738cbb3faf86713478c2bd813a6bf2dfb53d5a
Contents?: true
Size: 778 Bytes
Versions: 5
Compression:
Stored size: 778 Bytes
Contents
# frozen_string_literal: true module Tikkie module Api module Responses # Response when requesting a platform. class Platform < Base def platform_token data[:platformToken] end def name data[:name] end def phone_number data[:phoneNumber] end def email data[:email] end def notification_url data[:notificationUrl] end # see PlatformStatus def status data[:status] end def active? status == Tikkie::Api::Types::PlatformStatus::ACTIVE end # see PlatformUsage def platform_usage data[:platformUsage] end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems