Class: ConnectorKit::Version

Inherits:
Model
  • Object
show all
Defined in:
lib/connector_kit/models/version.rb

Overview

Simple model class for representing AppVersion

Instance Attribute Summary collapse

Attributes inherited from Model

#id

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Version

Returns a new instance of Version.



8
9
10
11
12
13
14
# File 'lib/connector_kit/models/version.rb', line 8

def initialize(options)
  super(options)

  attrs = options['attributes']
  @version_string = attrs['versionString']
  @store_state = attrs['appStoreState']
end

Instance Attribute Details

#store_stateObject (readonly)

Returns the value of attribute store_state.



6
7
8
# File 'lib/connector_kit/models/version.rb', line 6

def store_state
  @store_state
end

#version_stringObject (readonly)

Returns the value of attribute version_string.



6
7
8
# File 'lib/connector_kit/models/version.rb', line 6

def version_string
  @version_string
end