Class: Tikkie::Api::V1::Responses::Platform

Inherits:
Base
  • Object
show all
Defined in:
lib/tikkie/api/v1/responses/platform.rb

Overview

Response when requesting a platform.

Instance Attribute Summary

Attributes inherited from Base

#data, #response

Instance Method Summary collapse

Methods inherited from Base

#error?, #errors, #initialize, #response_code, #success?, #trace_id

Constructor Details

This class inherits a constructor from Tikkie::Api::V1::Responses::Base

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/tikkie/api/v1/responses/platform.rb', line 34

def active?
  status == Tikkie::Api::V1::Types::PlatformStatus::ACTIVE
end

#emailObject



21
22
23
# File 'lib/tikkie/api/v1/responses/platform.rb', line 21

def email
  data[:email]
end

#nameObject



13
14
15
# File 'lib/tikkie/api/v1/responses/platform.rb', line 13

def name
  data[:name]
end

#notification_urlObject



25
26
27
# File 'lib/tikkie/api/v1/responses/platform.rb', line 25

def notification_url
  data[:notificationUrl]
end

#phone_numberObject



17
18
19
# File 'lib/tikkie/api/v1/responses/platform.rb', line 17

def phone_number
  data[:phoneNumber]
end

#platform_tokenObject



9
10
11
# File 'lib/tikkie/api/v1/responses/platform.rb', line 9

def platform_token
  data[:platformToken]
end

#platform_usageObject

see PlatformUsage



39
40
41
# File 'lib/tikkie/api/v1/responses/platform.rb', line 39

def platform_usage
  data[:platformUsage]
end

#statusObject

see PlatformStatus



30
31
32
# File 'lib/tikkie/api/v1/responses/platform.rb', line 30

def status
  data[:status]
end