Class: Api::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/api/templates/api_base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, key, secret) ⇒ Base

Returns a new instance of Base.



8
9
10
11
12
# File 'lib/generators/api/templates/api_base.rb', line 8

def initialize(url, key, secret)
  self.url = url
  self.key = key
  self.secret = secret
end

Instance Attribute Details

#keyObject

Returns the value of attribute key.



6
7
8
# File 'lib/generators/api/templates/api_base.rb', line 6

def key
  @key
end

#secretObject

Returns the value of attribute secret.



6
7
8
# File 'lib/generators/api/templates/api_base.rb', line 6

def secret
  @secret
end

#urlObject

Returns the value of attribute url.



6
7
8
# File 'lib/generators/api/templates/api_base.rb', line 6

def url
  @url
end