Class: Spade::Packager::Credentials
- Inherits:
-
Object
- Object
- Spade::Packager::Credentials
- Defined in:
- lib/spade/packager/credentials.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
Instance Method Summary collapse
-
#initialize ⇒ Credentials
constructor
A new instance of Credentials.
- #save(email, api_key) ⇒ Object
Constructor Details
#initialize ⇒ Credentials
Returns a new instance of Credentials.
6 7 8 |
# File 'lib/spade/packager/credentials.rb', line 6 def initialize parse end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
4 5 6 |
# File 'lib/spade/packager/credentials.rb', line 4 def api_key @api_key end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
4 5 6 |
# File 'lib/spade/packager/credentials.rb', line 4 def email @email end |
Instance Method Details
#save(email, api_key) ⇒ Object
10 11 12 13 14 |
# File 'lib/spade/packager/credentials.rb', line 10 def save(email, api_key) @email = email @api_key = api_key write end |