Class: Houston::Extensions::Oauth::ProviderDsl

Inherits:
Object
  • Object
show all
Defined in:
lib/houston/boot/extensions/oauth.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(provider) ⇒ ProviderDsl

Returns a new instance of ProviderDsl.



43
44
45
# File 'lib/houston/boot/extensions/oauth.rb', line 43

def initialize(provider)
  @provider = provider
end

Instance Attribute Details

#providerObject (readonly)

Returns the value of attribute provider.



41
42
43
# File 'lib/houston/boot/extensions/oauth.rb', line 41

def provider
  @provider
end

Instance Method Details

#authorize_path(value) ⇒ Object



51
52
53
# File 'lib/houston/boot/extensions/oauth.rb', line 51

def authorize_path(value)
  provider.authorize_path = value
end

#site(value) ⇒ Object



47
48
49
# File 'lib/houston/boot/extensions/oauth.rb', line 47

def site(value)
  provider.site = value
end

#token_path(value) ⇒ Object



55
56
57
# File 'lib/houston/boot/extensions/oauth.rb', line 55

def token_path(value)
  provider.token_path = value
end