Module: Tickspot

Defined in:
lib/tickspot.rb,
lib/tickspot/client.rb,
lib/tickspot/version.rb

Defined Under Namespace

Classes: Client

Constant Summary collapse

VERSION =
"0.1.2"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.companyObject

Returns the value of attribute company.



4
5
6
# File 'lib/tickspot.rb', line 4

def company
  @company
end

.emailObject

Returns the value of attribute email.



4
5
6
# File 'lib/tickspot.rb', line 4

def email
  @email
end

.passwordObject

Returns the value of attribute password.



4
5
6
# File 'lib/tickspot.rb', line 4

def password
  @password
end

Class Method Details

.configure {|_self| ... } ⇒ Object

config/initializers/tickspot.rb (for instance)

Tickspot.configure do |config|

config.company = 'acme'
config.email = '[email protected]'
config.password = 'secret'

end

elsewhere

client = Tickspot::Client.new

Yields:

  • (_self)

Yield Parameters:

  • _self (Tickspot)

    the object that the method was called on



17
18
19
20
# File 'lib/tickspot.rb', line 17

def configure
  yield self
  true
end