Class: CollectionSpace::ApiVersion
- Inherits:
-
Struct
- Object
- Struct
- CollectionSpace::ApiVersion
- Defined in:
- lib/collectionspace/client/api_version.rb
Instance Attribute Summary collapse
-
#build ⇒ Object
Returns the value of attribute build.
-
#major ⇒ Object
Returns the value of attribute major.
-
#message ⇒ Object
Returns the value of attribute message.
-
#minor ⇒ Object
Returns the value of attribute minor.
-
#patch ⇒ Object
Returns the value of attribute patch.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#build ⇒ Object
Returns the value of attribute build
4 5 6 |
# File 'lib/collectionspace/client/api_version.rb', line 4 def build @build end |
#major ⇒ Object
Returns the value of attribute major
4 5 6 |
# File 'lib/collectionspace/client/api_version.rb', line 4 def major @major end |
#message ⇒ Object
Returns the value of attribute message
4 5 6 |
# File 'lib/collectionspace/client/api_version.rb', line 4 def @message end |
#minor ⇒ Object
Returns the value of attribute minor
4 5 6 |
# File 'lib/collectionspace/client/api_version.rb', line 4 def minor @minor end |
#patch ⇒ Object
Returns the value of attribute patch
4 5 6 |
# File 'lib/collectionspace/client/api_version.rb', line 4 def patch @patch end |
#status ⇒ Object
Returns the value of attribute status
4 5 6 |
# File 'lib/collectionspace/client/api_version.rb', line 4 def status @status end |
Instance Method Details
#failure? ⇒ Boolean
8 |
# File 'lib/collectionspace/client/api_version.rb', line 8 def failure? = !success? |
#joined ⇒ Object
10 11 12 13 14 |
# File 'lib/collectionspace/client/api_version.rb', line 10 def joined return if failure? [major, minor].compact.join(".") end |
#success? ⇒ Boolean
6 |
# File 'lib/collectionspace/client/api_version.rb', line 6 def success? = status == :success |