Module: NimbleApi

Defined in:
lib/nimble/base.rb,
lib/nimble/contact.rb,
lib/nimble/version.rb,
lib/nimble/contacts.rb

Defined Under Namespace

Classes: Base, Contact, Contacts

Constant Summary collapse

VERSION =
"0.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_versionObject

Returns the value of attribute api_version.



81
82
83
# File 'lib/nimble/base.rb', line 81

def api_version
  @api_version
end

.callback_pathObject

Returns the value of attribute callback_path.



81
82
83
# File 'lib/nimble/base.rb', line 81

def callback_path
  @callback_path
end

.client_idObject

Returns the value of attribute client_id.



81
82
83
# File 'lib/nimble/base.rb', line 81

def client_id
  @client_id
end

.client_secretObject

Returns the value of attribute client_secret.



81
82
83
# File 'lib/nimble/base.rb', line 81

def client_secret
  @client_secret
end

.connObject

Returns the value of attribute conn.



81
82
83
# File 'lib/nimble/base.rb', line 81

def conn
  @conn
end

.hostObject

Returns the value of attribute host.



81
82
83
# File 'lib/nimble/base.rb', line 81

def host
  @host
end

.refresh_tokenObject

Returns the value of attribute refresh_token.



81
82
83
# File 'lib/nimble/base.rb', line 81

def refresh_token
  @refresh_token
end

Class Method Details

.configure {|_self| ... } ⇒ Object Also known as: config

Yields:

  • (_self)

Yield Parameters:

  • _self (NimbleApi)

    the object that the method was called on



89
90
91
92
# File 'lib/nimble/base.rb', line 89

def configure
  yield self
  true
end