Module: DocumentCloud::Configurable
- Included in:
- DocumentCloud, Client
- Defined in:
- lib/document_cloud/configurable.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
writeonly
Sets the attribute email.
-
#password ⇒ Object
writeonly
Sets the attribute password.
Class Method Summary collapse
Instance Method Summary collapse
-
#configure {|_self| ... } ⇒ Object
Allow block configuration.
Instance Attribute Details
#email=(value) ⇒ Object (writeonly)
Sets the attribute email
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
4 5 6 |
# File 'lib/document_cloud/configurable.rb', line 4 def password=(value) @password = value end |
Class Method Details
.keys ⇒ Object
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
13 14 15 16 17 18 |
# File 'lib/document_cloud/configurable.rb', line 13 def configure yield self format_email! format_password! self end |