Class: SuperShuttle3
- Inherits:
-
Object
- Object
- SuperShuttle3
- Defined in:
- lib/super_shuttle3.rb
Instance Attribute Summary collapse
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_key ⇒ Object
Returns the value of attribute client_key.
-
#token ⇒ Object
Returns the value of attribute token.
-
#vendor ⇒ Object
Returns the value of attribute vendor.
Class Method Summary collapse
Instance Method Summary collapse
- #generate_token ⇒ Object
-
#initialize(id = 'sandbox', key = 'sandbox') ⇒ SuperShuttle3
constructor
A new instance of SuperShuttle3.
- #new_hi ⇒ Object
Constructor Details
#initialize(id = 'sandbox', key = 'sandbox') ⇒ SuperShuttle3
Returns a new instance of SuperShuttle3.
10 11 12 13 14 |
# File 'lib/super_shuttle3.rb', line 10 def initialize(id = 'sandbox', key = 'sandbox') @client_id = id @client_key = key @vendor = 'ss' end |
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id.
3 4 5 |
# File 'lib/super_shuttle3.rb', line 3 def client_id @client_id end |
#client_key ⇒ Object
Returns the value of attribute client_key.
3 4 5 |
# File 'lib/super_shuttle3.rb', line 3 def client_key @client_key end |
#token ⇒ Object
Returns the value of attribute token.
3 4 5 |
# File 'lib/super_shuttle3.rb', line 3 def token @token end |
#vendor ⇒ Object
Returns the value of attribute vendor.
3 4 5 |
# File 'lib/super_shuttle3.rb', line 3 def vendor @vendor end |
Class Method Details
.hi ⇒ Object
6 7 8 |
# File 'lib/super_shuttle3.rb', line 6 def self.hi puts "Hello world! - super shuttle!! \n Vendor = #{@vendor.to_s} \n id : #{@client_id.to_s} \n key : #{@client_key.to_s}" end |
Instance Method Details
#generate_token ⇒ Object
20 21 22 |
# File 'lib/super_shuttle3.rb', line 20 def generate_token end |
#new_hi ⇒ Object
16 17 18 |
# File 'lib/super_shuttle3.rb', line 16 def new_hi puts "Hello world! - super shuttle!! \n Vendor = #{@vendor} \n id : #{@client_id} \n key : #{@client_key}" end |