Module: DocumentCloud::Configurable

Included in:
DocumentCloud, Client
Defined in:
lib/document_cloud/configurable.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#email=(value) ⇒ Object (writeonly)

Sets the attribute email

Parameters:

  • value

    the value to set the attribute email to.



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

def email=(value)
  @email = value
end

#password=(value) ⇒ Object (writeonly)

Sets the attribute password

Parameters:

  • value

    the value to set the attribute password to.



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

def password=(value)
  @password = value
end

Class Method Details

.keysObject



7
8
9
# File 'lib/document_cloud/configurable.rb', line 7

def keys
  @keys ||= [:email, :password]
end

Instance Method Details

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

Allow block configuration

Yields:

  • (_self)

Yield Parameters:



13
14
15
16
17
18
# File 'lib/document_cloud/configurable.rb', line 13

def configure
  yield self
  format_email!
  format_password!
  self
end