Module: IrisRails
- Defined in:
- lib/generators/lib/iris_rails.rb
Defined Under Namespace
Classes: Account, BaseController, Error, Post, PostsController
Class Attribute Summary collapse
-
.api_token ⇒ Object
Returns the value of attribute api_token.
Class Method Summary collapse
- .indexUrl ⇒ Object
- .infoUrl ⇒ Object
-
.perform ⇒ Object
Your code goes here…
- .postUrl(slug) ⇒ Object
Class Attribute Details
.api_token ⇒ Object
Returns the value of attribute api_token.
9 10 11 |
# File 'lib/generators/lib/iris_rails.rb', line 9 def api_token @api_token end |
Class Method Details
.indexUrl ⇒ Object
14 15 16 |
# File 'lib/generators/lib/iris_rails.rb', line 14 def self.indexUrl @api_url + 'posts?api_key=' + self.api_token end |
.infoUrl ⇒ Object
22 23 24 |
# File 'lib/generators/lib/iris_rails.rb', line 22 def self.infoUrl @api_url + 'account-info?api_key=' + self.api_token end |
.perform ⇒ Object
Your code goes here…
28 29 30 |
# File 'lib/generators/lib/iris_rails.rb', line 28 def self.perform "performing" end |
.postUrl(slug) ⇒ Object
18 19 20 |
# File 'lib/generators/lib/iris_rails.rb', line 18 def self.postUrl(slug) @api_url + "posts/#{slug}?api_key=" + self.api_token end |