Class: SkadateGems::Dev::Remote::Configs::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/skadategems/dev/remote/configs.rb

Overview

Represents remote application config entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(remote, id, name, value) ⇒ Config

Returns a new instance of Config.

Parameters:

  • remote (Remote)

    remote skadate app

  • id (Fixnum)

    config id

  • name (String)

    config name

  • value (mixed)

    config value



66
67
68
# File 'lib/skadategems/dev/remote/configs.rb', line 66

def initialize(remote, id, name, value)
  @remote, @id, @name, @value = remote, id, name, value
end

Instance Attribute Details

#idFixnum (readonly)

Returns config entry id.

Returns:

  • (Fixnum)

    config entry id



51
52
53
# File 'lib/skadategems/dev/remote/configs.rb', line 51

def id
  @id
end

#nameString (readonly)

Returns config entry name.

Returns:

  • (String)

    config entry name



54
55
56
# File 'lib/skadategems/dev/remote/configs.rb', line 54

def name
  @name
end

#update_statusnil | :updated | :not_modified (readonly)

Returns config value update status.

Returns:

  • (nil | :updated | :not_modified)

    config value update status



60
61
62
# File 'lib/skadategems/dev/remote/configs.rb', line 60

def update_status
  @update_status
end

#valuemixed

Returns config entry value.

Returns:

  • (mixed)

    config entry value



57
58
59
# File 'lib/skadategems/dev/remote/configs.rb', line 57

def value
  @value
end