Class: LibertyReserveLink::Credential
- Inherits:
-
Struct
- Object
- Struct
- LibertyReserveLink::Credential
- Defined in:
- lib/liberty_reserve_link/credential.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#name ⇒ Object
Returns the value of attribute name.
-
#secret ⇒ Object
Returns the value of attribute secret.
Instance Method Summary collapse
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account
4 5 6 |
# File 'lib/liberty_reserve_link/credential.rb', line 4 def account @account end |
#name ⇒ Object
Returns the value of attribute name
4 5 6 |
# File 'lib/liberty_reserve_link/credential.rb', line 4 def name @name end |
#secret ⇒ Object
Returns the value of attribute secret
4 5 6 |
# File 'lib/liberty_reserve_link/credential.rb', line 4 def secret @secret end |
Instance Method Details
#valid? ⇒ Boolean
5 6 7 |
# File 'lib/liberty_reserve_link/credential.rb', line 5 def valid? valid_field?(account) && valid_field?(secret) && valid_field?(name) end |
#valid_field?(field) ⇒ Boolean
9 10 11 |
# File 'lib/liberty_reserve_link/credential.rb', line 9 def valid_field? field !field.nil? && !field.empty? end |