mio-config 2.6.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mio/model/account_property.rb +35 -0
- metadata +2 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: c8b6b243300c3083c1a5540dd94177b73e24a104
         | 
| 4 | 
            +
              data.tar.gz: 278e7029b67ef01b549a5a47f37541304fdce68f
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 2607af90354a21186af46b681dd36ac25c010b8983a3a706a5aa6fa8e6a23f2d76758a9d4e6874a5f28490ea97edfcd3fa9a0880b0e614d4c527bfb4471062f3
         | 
| 7 | 
            +
              data.tar.gz: f0b26cfffecb9ff48aaf8f6629c471910f6c774523fb6a6499a7fdfede077b733b6d46c78ea81b47c7a300180525839528671600082cf254100176d7ed001b93
         | 
| @@ -0,0 +1,35 @@ | |
| 1 | 
            +
            class Mio
         | 
| 2 | 
            +
              class Model
         | 
| 3 | 
            +
                class AccountProperty < Model
         | 
| 4 | 
            +
                  set_resource :accountProperties
         | 
| 5 | 
            +
             | 
| 6 | 
            +
                  field :name, String, 'Name of account property'
         | 
| 7 | 
            +
                  field :key, String, 'Account property key'
         | 
| 8 | 
            +
                  field :value, String,'Account property value'
         | 
| 9 | 
            +
             | 
| 10 | 
            +
                  def create_hash
         | 
| 11 | 
            +
                    {key: @args.key,
         | 
| 12 | 
            +
                     value: @args.value}
         | 
| 13 | 
            +
                  end
         | 
| 14 | 
            +
             | 
| 15 | 
            +
                  def go
         | 
| 16 | 
            +
                    unless look_up
         | 
| 17 | 
            +
                      @object = create
         | 
| 18 | 
            +
                    #else
         | 
| 19 | 
            +
                    #  @object = look_up
         | 
| 20 | 
            +
                    end
         | 
| 21 | 
            +
             | 
| 22 | 
            +
                    # @TODO Update the account property??
         | 
| 23 | 
            +
                    # Does not appear to support PUT ?
         | 
| 24 | 
            +
                    # Will need raise feature with oooooyyyyyaaaallllllaaaa
         | 
| 25 | 
            +
                    # No configure endpoint as no configuration
         | 
| 26 | 
            +
             | 
| 27 | 
            +
                    @object['name'] = @args.name
         | 
| 28 | 
            +
                    @object['id'] = @object['href'].scan( /\d+$/).last
         | 
| 29 | 
            +
             | 
| 30 | 
            +
                    return @object
         | 
| 31 | 
            +
                  end
         | 
| 32 | 
            +
             | 
| 33 | 
            +
                end
         | 
| 34 | 
            +
              end
         | 
| 35 | 
            +
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: mio-config
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 2. | 
| 4 | 
            +
              version: 2.7.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - jspc
         | 
| @@ -108,6 +108,7 @@ files: | |
| 108 108 | 
             
            - "./lib/mio/errors.rb"
         | 
| 109 109 | 
             
            - "./lib/mio/migrations.rb"
         | 
| 110 110 | 
             
            - "./lib/mio/model.rb"
         | 
| 111 | 
            +
            - "./lib/mio/model/account_property.rb"
         | 
| 111 112 | 
             
            - "./lib/mio/model/autoload.rb"
         | 
| 112 113 | 
             
            - "./lib/mio/model/email_message_action.rb"
         | 
| 113 114 | 
             
            - "./lib/mio/model/groovy_script.rb"
         |