Class: Core::Decorators::Application

Inherits:
Base
  • Object
show all
Defined in:
lib/core/decorators/application.rb

Instance Method Summary collapse

Methods inherited from Base

#id, #to_json

Instance Method Details

#has_secret?(secret) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/core/decorators/application.rb', line 12

def has_secret?(secret)
  object.client_secret == secret
end

#to_hObject



4
5
6
7
8
9
10
# File 'lib/core/decorators/application.rb', line 4

def to_h
  {
    client_id: client_id,
    name: name,
    premium: premium
  }
end