Class: Mobiscroll::Connect::BlockedAccount

Inherits:
Struct
  • Object
show all
Defined in:
lib/mobiscroll/connect/models.rb

Overview

A connected account that withheld calendar access on its provider's consent screen.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#accountObject

Returns the value of attribute account

Returns:

  • (Object)

    the current value of account



39
40
41
# File 'lib/mobiscroll/connect/models.rb', line 39

def 
  @account
end

#providerObject

Returns the value of attribute provider

Returns:

  • (Object)

    the current value of provider



39
40
41
# File 'lib/mobiscroll/connect/models.rb', line 39

def provider
  @provider
end

Class Method Details

.from_h(hash) ⇒ Object



40
41
42
43
44
45
46
47
# File 'lib/mobiscroll/connect/models.rb', line 40

def self.from_h(hash)
  return nil if hash.nil?

  new(
    provider: hash['provider'] || hash[:provider],
    account: hash['account'] || hash[:account]
  )
end